006.PHP Password Hashing

来源:互联网 发布:oculus vr 软件下载 编辑:程序博客网 时间:2024/05/17 03:38
1. password_hash — Creates a password hash
description: string password_hash ( string $password , integer $algo [, array $options ] )
$algo = [PASSWORD_DEFAULT | PASSWORD_BCRYPT];

2. password_verify — Verifies that a password matches a hash
description: boolean password_verify ( string $password , string $hash )

3. password_needs_rehash — Checks if the given hash matches the given options
description: boolean password_needs_rehash ( string $hash , integer $algo [, array $options ] )

4. password_get_info — Returns information about the given hash
description: array password_get_info ( string $hash )
return: {$algo, $algoName, $options}
0 0
原创粉丝点击