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])
파일 보기 프로젝트 열기: hautelook/phpass 1 사용 예제들

공개 메소드들

메소드 설명
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