Свойство | Type | Description | |
---|---|---|---|
$key | string | Encryption and authentication key |
Méthode | Description | |
---|---|---|
__construct ( ) | Constructor | |
open ( string $save_path, string $session_name ) : boolean | Open the session | |
read ( string $id ) | Read from session and decrypt | |
write ( string $id, string $data ) | Encrypt the data and write into the session |
Méthode | Description | |
---|---|---|
decrypt ( string $data, string $key ) : string | Authenticate and decrypt | |
encrypt ( string $data, string $key ) : string | Encrypt and authenticate | |
getKey ( string $name ) : string | Get the encryption and authentication keys from cookie | |
hash_equals ( string $expected, string $actual ) : boolean | Hash equals function for PHP 5.5+ |