PHP 클래스 Dcrypt\Otp

Details of OTP's operation: - output is in binary format - does NOT chain cypher blocks, instead uses a form of block counter feedback - does NOT generate IVs - as with all stream ciphers, never use the same key more than once and never assume the authenticity of a message when decrypting
파일 보기 프로젝트 열기: dopecode/dcrypt 1 사용 예제들

공개 메소드들

메소드 설명
crypt ( string $input, string $password, string $algo = 'sha512' ) : string Encrypt or decrypt a binary input string.

메소드 상세

crypt() 공개 정적인 메소드

Encrypt or decrypt a binary input string.
public static crypt ( string $input, string $password, string $algo = 'sha512' ) : string
$input string Input data to encrypt
$password string Encryption/decryption key to use on input
$algo string Hashing algo to generate keystream
리턴 string