PHP 인터페이스 Neos\Flow\Security\Cryptography\PasswordHashingStrategyInterface

파일 보기 프로젝트 열기: neos/flow-development-collection

공개 메소드들

메소드 설명
hashPassword ( string $password, string $staticSalt = null ) : string Hash a password for storage
validatePassword ( string $password, string $hashedPasswordAndSalt, string $staticSalt = null ) : boolean Validate a hashed password against a cleartext password

메소드 상세

hashPassword() 공개 메소드

Hash a password for storage
public hashPassword ( string $password, string $staticSalt = null ) : string
$password string Cleartext password that will be hashed
$staticSalt string Optional static salt that will not be stored in the hashed password
리턴 string The hashed password with dynamic salt (if used)

validatePassword() 공개 메소드

Validate a hashed password against a cleartext password
public validatePassword ( string $password, string $hashedPasswordAndSalt, string $staticSalt = null ) : boolean
$password string
$hashedPasswordAndSalt string Hashed password with dynamic salt (if used)
$staticSalt string Optional static salt that will not be stored in the hashed password
리턴 boolean TRUE if the given cleartext password matched the hashed password