프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$key | string | Encryption and authentication key |
메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
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+ |