PHP Класс Neos\Flow\Tests\Unit\Cryptography\Fixture\TestHashingStrategy

Наследование: implements Neos\Flow\Security\Cryptography\PasswordHashingStrategyInterface
Показать файл Открыть проект

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

Метод Описание
hashPassword ( string $password, string $staticSalt = null ) : string
validatePassword ( string $password, string $hashedPasswordAndSalt, string $staticSalt = null ) : boolean

Описание методов

hashPassword() публичный Метод

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() публичный Метод

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