implements Phalcon\CryptInterface
Source on GitHub
Provides encryption facilities to phalcon applications
$crypt = new \Phalcon\Crypt();
$key = 'le password';
$text = 'This is a secret text';
$encrypted = $crypt->encrypt($text, $key);
echo $crypt->decrypt($encrypted, $key);
Constants
integer PADDING_DEFAULT
integer PADDING_ANSI_X_923
integer PADDING_PKCS7
integer PADDING_ISO_10126
integer PADDING_ISO_IEC_7816_4
integer PADDING_ZERO
integer PADDING_SPACE
Methods
public se