메소드 | 설명 | |
---|---|---|
hash ( $pw, $salt = NULL, $cost = self::COST ) : string | FALSE | Generate bcrypt hash of string | |
needs_rehash ( $hash, $cost = self::COST ) : boolean | Check if password is still strong enough | |
verify ( $pw, $hash ) : boolean | Verify password against hash using timing attack resistant approach |
public needs_rehash ( $hash, $cost = self::COST ) : boolean | ||
$hash | string | |
$cost | int | |
리턴 | boolean |