SilverStripe\HybridSessions\Crypto\OpenSSLCrypto
Some cryptography used for Session cookie encryption.
Synopsis
class OpenSSLCrypto
implements
CryptoHandler
{
- // members
- protected $key;
- protected $salt;
- protected $saltedKey;
- // methods
- public string getKey()
- public string getSalt()
- public void __construct()
- public string encrypt()
- public bool|string decrypt()
Hierarchy
Members
protected
- $key
- $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()