SilverStripe\HybridSessions\Crypto\McryptCrypto
Some cryptography used for Session cookie encryption. Requires the mcrypt extension.
Synopsis
class McryptCrypto
implements
CryptoHandler
{
- // members
- protected $key;
- protected $ivSize;
- protected $keySize;
- protected $salt;
- protected $saltedKey;
- // methods
- public string getKey()
- public string getSalt()
- public void __construct()
- public string encrypt()
- public bool|string decrypt()
Hierarchy
Members
protected
- $ivSize
- $key
- $keySize
- $salt
- $saltedKey
Methods
public
- __construct()
- decrypt() — Check the signature on an encrypted-and-signed message, and if valid decrypt the content
- encrypt() — Encrypt and then sign some cleartext
- getKey()
- getSalt()