PHP 클래스 CryptSession, TeamPass

저자: Enrico Zimuel ([email protected])
파일 보기 프로젝트 열기: nilsteampassnet/TeamPass

보호된 프로퍼티들

프로퍼티 타입 설명
$_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