McryptCrypto deprecated
class McryptCrypto implements CryptoHandler (View source)
deprecated 2.2.0 Use OpenSSLCrypto instead WARNING: Please beware that McryptCrypto does not preserve zero bytes at the end of encrypted messages. Thus, a message such as "data\x00" will become "data" after encrypt-decrypt. As such, it is not binary safe. It is guaranteed for UTF-8 encoded text not to have zero bytes. However, other encodings may contain those. For example, be careful with UTF-16LE, since characters less than U+0100 are very common.
Some cryptography used for Session cookie encryption. Requires the mcrypt extension.
Properties
protected | $key | |||
protected | $ivSize | |||
protected | $keySize | |||
protected | $salt | |||
protected | $saltedKey |
Methods
Check the signature on an encrypted-and-signed message, and if valid decrypt the content
Details
string
getKey()
No description
string
getSalt()
No description
__construct($key, $salt)
No description
string
encrypt($cleartext)
Encrypt and then sign some cleartext
string
decrypt(string $data)
Check the signature on an encrypted-and-signed message, and if valid decrypt the content