$_validCiphers
$_validCiphers : array
Valid cipher names for encrypted cookies.
Cookie Crypt Trait.
Provides the encrypt/decrypt logic for the CookieComponent.
_encrypt(string $value, string|boolean $encrypt, string|null $key = null) : string
Encrypts $value using public $type method in Security class
string | $value | Value to encrypt |
string|boolean | $encrypt | Encryption mode to use. False disabled encryption. |
string|null | $key | Used as the security salt if specified. |
Encoded values
_decrypt(array $values, string|boolean $mode, string|null $key = null) : string|array
Decrypts $value using public $type method in Security class
array | $values | Values to decrypt |
string|boolean | $mode | Encryption mode |
string|null | $key | Used as the security salt if specified. |
Decrypted values
_decode(string $value, string|false $encrypt, string|null $key) : string|array
Decodes and decrypts a single value.
string | $value | The value to decode & decrypt. |
string|false | $encrypt | The encryption cipher to use. |
string|null | $key | Used as the security salt if specified. |
Decoded values.
_explode(string $string) : string|array
Explode method to return array from string set in CookieComponent::_implode() Maintains reading backwards compatibility with 1.x CookieComponent::_implode().
string | $string | A string containing JSON encoded data, or a bare string. |
Map of key and values
Loading…