PHP Класс CryptSession, TeamPass

Автор: Enrico Zimuel ([email protected])
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_algo # Encryption algorithm
$_auth # Key for HMAC authentication
$_ivSize # Size of the IV vector for encryption
$_key # Key for encryption/decryption
$_keyName # Cookie variable name of the encryption + auth key
$_name # Session name (optional)
$_path # Path of the session file

Открытые методы

Метод Описание
__construct ( ) Constructor
close ( ) # Close the session
destroy ( $id ) # Destoroy the session
gc ( $max ) # Garbage Collector
open ( string $save_path, string $session_name ) : boolean Open the session
read ( $id ) # Read and decrypt the session
write ( $id, $data ) # Encrypt and write the session

Защищенные методы

Метод Описание
_randomKey ( $length = 32 ) # fallback to mcrypt_create_iv

Описание методов

__construct() публичный Метод

Constructor
public __construct ( )

_randomKey() защищенный Метод

# fallback to mcrypt_create_iv
protected _randomKey ( $length = 32 )

close() публичный Метод

# Close the session
public close ( )

destroy() публичный Метод

# Destoroy the session
public destroy ( $id )

gc() публичный Метод

# Garbage Collector
public gc ( $max )

open() публичный Метод

Open the session
public open ( string $save_path, string $session_name ) : boolean
$save_path string
$session_name string
Результат boolean

read() публичный Метод

# Read and decrypt the session
public read ( $id )

write() публичный Метод

# Encrypt and write the session
public write ( $id, $data )

Описание свойств

$_algo защищенное свойство

# Encryption algorithm
protected $_algo

$_auth защищенное свойство

# Key for HMAC authentication
protected $_auth

$_ivSize защищенное свойство

# Size of the IV vector for encryption
protected $_ivSize

$_key защищенное свойство

# Key for encryption/decryption
protected $_key

$_keyName защищенное свойство

# Cookie variable name of the encryption + auth key
protected $_keyName

$_name защищенное свойство

# Session name (optional)
protected $_name

$_path защищенное свойство

# Path of the session file
protected $_path