PHP Интерфейс Neos\Flow\Security\Cryptography\PasswordHashingStrategyInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
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