PHP 클래스 Neos\Flow\Security\Cryptography\Algorithms

Right now this class provides a PHP based PBKDF2 implementation.
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

공개 메소드들

메소드 설명
pbkdf2 ( string $password, string $salt, integer $iterationCount, integer $derivedKeyLength, string $algorithm = 'sha256' ) : string Compute a derived key from a password based on PBKDF2

메소드 상세

pbkdf2() 공개 정적인 메소드

See PKCS #5 v2.0 http://tools.ietf.org/html/rfc2898 for implementation details. The implementation is tested with test vectors from http://tools.ietf.org/html/rfc6070 . If https://wiki.php.net/rfc/hash_pbkdf2 is ever part of PHP we should check for the existence of hash_pbkdf2() and use it if available.
public static pbkdf2 ( string $password, string $salt, integer $iterationCount, integer $derivedKeyLength, string $algorithm = 'sha256' ) : string
$password string Input string / password
$salt string The salt
$iterationCount integer Hash iteration count
$derivedKeyLength integer Derived key length
$algorithm string Hash algorithm to use, see hash_algos(), defaults to sha256
리턴 string The computed derived key as raw binary data