PHP 클래스 Dcrypt\Aes

상속: extends Cryptobase
파일 보기 프로젝트 열기: dopecode/dcrypt 1 사용 예제들

공개 메소드들

메소드 설명
decrypt ( string $cyphertext, string $password, integer $cost ) : string Decrypt cyphertext
encrypt ( string $plaintext, string $password, integer $cost ) : string Encrypt plaintext

보호된 메소드들

메소드 설명
mode ( ) : string Return the encryption mode string. "cbc" or "ctr"

메소드 상세

decrypt() 공개 정적인 메소드

Decrypt cyphertext
public static decrypt ( string $cyphertext, string $password, integer $cost ) : string
$cyphertext string Cyphertext to decrypt
$password string Password that should be used to decrypt input data
$cost integer Number of HMAC iterations to perform on key
리턴 string

encrypt() 공개 정적인 메소드

Encrypt plaintext
public static encrypt ( string $plaintext, string $password, integer $cost ) : string
$plaintext string Plaintext string to encrypt.
$password string Password used to encrypt data.
$cost integer Number of HMAC iterations to perform on key
리턴 string

mode() 보호된 정적인 메소드

Return the encryption mode string. "cbc" or "ctr"
protected static mode ( ) : string
리턴 string