PHP Класс Pop\Crypt\Md5

Автор: Nick Sagona, III ([email protected])
Наследование: extends Pop\Crypt\AbstractCrypt
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$salt string Salt

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

Метод Описание
__construct ( ) : self Constructor
create ( string $string ) : string Method to create the hashed value
getSalt ( ) : string Method to get the salt
setSalt ( string $salt = null ) : self Method to set the salt
verify ( string $string, string $hash ) : boolean Method to verify the hashed value

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

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

Instantiate the md5 object.
public __construct ( ) : self
Результат self

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

Method to create the hashed value
public create ( string $string ) : string
$string string
Результат string

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

Method to get the salt
public getSalt ( ) : string
Результат string

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

Method to set the salt
public setSalt ( string $salt = null ) : self
$salt string
Результат self

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

Method to verify the hashed value
public verify ( string $string, string $hash ) : boolean
$string string
$hash string
Результат boolean

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

$salt защищенное свойство

Salt
protected string $salt
Результат string