PHP Класс YiiPassword\Strategies\Hash

Наследование: extends YiiPassword\Strategy
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$hashMethod Callable The hash method to use when encoding passwords
$workFactor integer The higher the work factor the more computationally expensive it is to encode and validate passwords. So it makes your passwords harder to crack, but it can also be a burden on your own server.

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

Метод Описание
encode ( string $password ) : string Encode a plain text password.

Защищенные методы

Метод Описание
generateSalt ( ) : string Generates a random salt to use when noncing passwords

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

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

Child classes should implement this method and do their encoding here
public encode ( string $password ) : string
$password string the plain text password to encode
Результат string the encoded password

generateSalt() защищенный Метод

Generates a random salt to use when noncing passwords
protected generateSalt ( ) : string
Результат string the random salt

Описание свойств

$hashMethod публичное свойство

The hash method to use when encoding passwords
public Callable $hashMethod
Результат Callable

$workFactor публичное свойство

The higher the work factor the more computationally expensive it is to encode and validate passwords. So it makes your passwords harder to crack, but it can also be a burden on your own server.
public int $workFactor
Результат integer