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])
Show file Open project: hautelook/phpass Class Usage Examples

Public Methods

Method 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 method

public CheckPassword ( String $password, String $stored_hash ) : boolean
$password String
$stored_hash String
return boolean

HashPassword() public method

public HashPassword ( String $password )
$password String

__construct() public method

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

crypt_private() public method

public crypt_private ( String $password, String $setting ) : String
$password String
$setting String
return String

encode64() public method

public encode64 ( String $input, integer $count ) : String
$input String
$count integer
return String

gensalt_blowfish() public method

public gensalt_blowfish ( String $input ) : String
$input String
return String

gensalt_extended() public method

public gensalt_extended ( String $input ) : String
$input String
return String

gensalt_private() public method

public gensalt_private ( String $input ) : String
$input String
return String

get_random_bytes() public method

public get_random_bytes ( integer $count ) : String
$count integer
return String