Method |
Description |
|
gen_salt ( integer $len = 32 ) : string |
Create a random salt |
|
hash_apr1 ( string $clear, string $salt = null, string $magic = 'apr1' ) : string |
Password hashing method 'apr1' |
|
hash_bcrypt ( string $clear, string $salt = null, integer $compute = 8 ) : string |
Passwordhashing method 'bcrypt' |
|
hash_crypt ( string $clear, string $salt = null ) : string |
Password hashing method 'crypt' |
|
hash_djangomd5 ( string $clear, string $salt = null ) : string |
Password hashing method 'djangomd5' |
|
hash_djangopbkdf2 ( string $clear, string $salt = null, array $opts = [] ) : string |
Password hashing method 'djangopbkdf2' |
|
hash_djangopbkdf2_sha1 ( string $clear, string $salt = null, array $opts = [] ) : string |
Alias for djangopbkdf2 defaulting to sha1 as hash algorithm |
|
hash_djangopbkdf2_sha256 ( string $clear, string $salt = null, array $opts = [] ) : string |
Alias for djangopbkdf2 defaulting to sha256 as hash algorithm |
|
hash_djangosha1 ( string $clear, string $salt = null ) : string |
Password hashing method 'djangosha1' |
|
hash_hmd5 ( $clear, $salt = null, $magic = 'H', $compute = 8 ) |
Alias for hash_pmd5 |
|
hash_kmd5 ( string $clear, string $salt = null ) : string |
Password hashing method 'kmd5' |
|
hash_lsmd5 ( string $clear, string $salt = null ) : string |
Password hashing method 'lsmd5' |
|
hash_md5 ( string $clear ) : string |
Password hashing method 'md5' |
|
hash_mediawiki ( string $clear, string $salt = null ) : string |
Password hashing method 'mediawiki' |
|
hash_my411 ( string $clear ) : string |
Password hashing method 'my411' |
|
hash_mysql ( string $clear ) : string |
Password hashing method 'mysql' |
|
hash_pmd5 ( string $clear, string $salt = null, string $magic = 'P', integer $compute = 8 ) : string |
Password hashing method 'pmd5' |
|
hash_sha1 ( string $clear ) : string |
Password hashing method 'sha1' |
|
hash_sha512 ( string $clear, string $salt = null ) : string |
Password hashing method SHA512 |
|
hash_smd5 ( string $clear, string $salt = null ) : string |
Password hashing method 'smd5' |
|
hash_ssha ( string $clear, string $salt = null ) : string |
Password hashing method 'ssha' as used by LDAP |
|
hmac ( string $algo, string $data, string $key, boolean $raw_output = false ) : string |
Wraps around native hash_hmac() or reimplents it |
|
init_salt ( &$salt, integer $len = 32, boolean $cut = true ) |
Initialize the passed variable with a salt if needed. |
|
verify_hash ( string $clear, string $hash ) : boolean |
Verifies a cleartext password against a crypted hash |
|