Property | Type | Description | |
---|---|---|---|
$_crypt | Horde_Crypt_Blowfish_Base | Blowfish crypt driver. |
Method | Description | |
---|---|---|
__construct ( string $key, array $opts = [] ) | Constructor. | |
__get ( $name ) | ||
decrypt ( string $text ) : string | Decrypts a string. | |
encrypt ( string $text ) : string | Encrypts a string. | |
setKey ( string $key, string $iv = null ) | Sets the secret key. |
public __construct ( string $key, array $opts = [] ) | ||
$key | string | Encryption key. |
$opts | array | Additional options: - cipher: (string) Either 'ecb' or 'cbc'. - ignore: (integer) A mask of drivers to ignore (IGNORE_* constants). - iv: (string) IV to use. |