Свойство | Type | Description | |
---|---|---|---|
$cipher | string | Cipher method. | |
$iv | string | Initialization vector. | |
$key | string | Encryption key. |
Méthode | Description | |
---|---|---|
__construct ( string $cipher ) | Constructor. | |
decrypt ( string $text ) : string | Decrypts a string. | |
encrypt ( string $text ) : string | Encrypts a string. | |
setIv ( string $iv = null ) | Sets the initialization vector (required for CBC mode). | |
supported ( ) : boolean | Is this driver supported on this system? |
Méthode | Description | |
---|---|---|
_pad ( string $text, boolean $ignore = false ) : string | Pad text to match blocksize length. | |
_unpad ( string $text ) : string | Unpad text from blocksize boundary. |
public __construct ( string $cipher ) | ||
$cipher | string | Either 'ecb' or 'cbc'. |