PHP Класс Hautelook\Phpass\PasswordHash

Version 1.0.0 - modified by Nordstromrack.com | HauteLook Change Log: - the hash_equals function is now used instead of == or === to prevent timing attacks Written by Solar Designer in 2004-2006 and placed in There's absolutely no warranty. The homepage URL for this framework is: http://www.openwall.com/phpass/ Please be sure to update the Version line if you edit this file in any way. It is suggested that you leave the main version number intact, but indicate your project name (after the slash) and add your own revision information. Please do not change the "private" password hashing method implemented in here, thereby making your hashes incompatible. However, if you must, please change the hash type identifier (the "$P$") to something different. Obviously, since this code is in the public domain, the above are not requirements (there can be none), but merely suggestions.
Автор: Solar Designer ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CheckPassword ( String $password, String $stored_hash ) : boolean
HashPassword ( String $password )
__construct ( integer $iteration_count_log2, boolean $portable_hashes ) Constructor
crypt_private ( String $password, String $setting ) : String
encode64 ( String $input, integer $count ) : String
gensalt_blowfish ( String $input ) : String
gensalt_extended ( String $input ) : String
gensalt_private ( String $input ) : String
get_random_bytes ( integer $count ) : String

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

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

public CheckPassword ( String $password, String $stored_hash ) : boolean
$password String
$stored_hash String
Результат boolean

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

public HashPassword ( String $password )
$password String

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

Constructor
public __construct ( integer $iteration_count_log2, boolean $portable_hashes )
$iteration_count_log2 integer
$portable_hashes boolean

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

public crypt_private ( String $password, String $setting ) : String
$password String
$setting String
Результат String

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

public encode64 ( String $input, integer $count ) : String
$input String
$count integer
Результат String

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

public gensalt_blowfish ( String $input ) : String
$input String
Результат String

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

public gensalt_extended ( String $input ) : String
$input String
Результат String

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

public gensalt_private ( String $input ) : String
$input String
Результат String

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

public get_random_bytes ( integer $count ) : String
$count integer
Результат String