Method |
Description |
|
decrypt ( string $text, string $key = null ) : string |
Decrypts a text |
|
decryptBase64 ( string $text, mixed $key = null ) : string |
Decrypt a text that is coded as a base64 string |
|
encrypt ( string $text, mixed $key = null ) : string |
Encrypts a text |
|
encryptBase64 ( string $text, mixed $key = null ) : string |
Encrypts a text returning the result as a base64 string |
|
getAvailableCiphers ( ) : array |
Returns a list of available cyphers |
|
getAvailableModes ( ) : array |
Returns a list of available modes |
|
getCipher ( ) : string |
Returns the current cipher |
|
getKey ( ) : string |
Returns the encryption key |
|
getMode ( ) : string |
Returns the current encryption mode |
|
setCipher ( string $cipher ) : Phalcon\Legacy\CryptInterface |
Sets the cipher algorithm |
|
setKey ( string $key ) : Phalcon\Legacy\CryptInterface |
Sets the encryption key |
|
setMode ( string $mode ) : Phalcon\Legacy\CryptInterface |
Sets the encrypt/decrypt mode |
|