PHP Class 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.
Author: Solar Designer ([email protected])
Afficher le fichier Open project: hautelook/phpass Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

CheckPassword() public méthode

public CheckPassword ( String $password, String $stored_hash ) : boolean
$password String
$stored_hash String
Résultat boolean

HashPassword() public méthode

public HashPassword ( String $password )
$password String

__construct() public méthode

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

crypt_private() public méthode

public crypt_private ( String $password, String $setting ) : String
$password String
$setting String
Résultat String

encode64() public méthode

public encode64 ( String $input, integer $count ) : String
$input String
$count integer
Résultat String

gensalt_blowfish() public méthode

public gensalt_blowfish ( String $input ) : String
$input String
Résultat String

gensalt_extended() public méthode

public gensalt_extended ( String $input ) : String
$input String
Résultat String

gensalt_private() public méthode

public gensalt_private ( String $input ) : String
$input String
Résultat String

get_random_bytes() public méthode

public get_random_bytes ( integer $count ) : String
$count integer
Résultat String