프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$Weak | boolean | ||
$portable_hashes | boolean |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$algorithms | array |
메소드 | 설명 | |
---|---|---|
checkPassword ( string $Password, string $StoredHash, boolean | string $Method = false ) : boolean | Check a password against a stored password. | |
hashPassword ( string $password ) : string | Create a password hash. | |
hashPasswordPhpass ( string $password ) : string | Create a password hash using Phpass's algorithm. |
메소드 | 설명 | |
---|---|---|
checkYAF ( string $Password, string $StoredHash ) : boolean | Check a YAF hash. | |
getAlgorithm ( string $algorithm ) : object | Grab an instance of a valid password algorithm. |
public checkPassword ( string $Password, string $StoredHash, boolean | string $Method = false ) : boolean | ||
$Password | string | The plaintext password to check. |
$StoredHash | string | The password hash stored in the database. |
$Method | boolean | string | The password hashing method. |
리턴 | boolean | Returns **true** if the password matches the hash or **false** if it doesn't. |
protected getAlgorithm ( string $algorithm ) : object | ||
$algorithm | string | |
리턴 | object |
public hashPassword ( string $password ) : string | ||
$password | string | The plaintext password to hash. |
리턴 | string | Returns a secure hash of {@link $password}. |
public hashPasswordPhpass ( string $password ) : string | ||
$password | string | The plaintext password to hash. |
리턴 | string | Returns a password hash. |