Passwords
class Passwords
Passwords tools. Requires PHP >= 5.3.7.
Constants
BCRYPT_COST |
|
Methods
static string
hash($password, array $options = NULL)
Computes salted password hash.
static bool
verify($password, $hash)
Verifies that a password matches a hash.
static bool
needsRehash($hash, array $options = NULL)
Checks if the given hash matches the options.
Details
at line 27
static string
hash($password, array $options = NULL)
Computes salted password hash.
at line 52
static bool
verify($password, $hash)
Verifies that a password matches a hash.
at line 66
static bool
needsRehash($hash, array $options = NULL)
Checks if the given hash matches the options.