openlss/func-bcrypt
Composer 安装命令:
composer require openlss/func-bcrypt
包简介
Blowfish Crypt helpers for password hashing
README 文档
README
Blowfish Crypt helper functions for password hashing
These functions are used to aid in bcrypt hashing paswords for a more secure password hashing option
BCrypt hashed passwords are stronger and have inline salting.
Usage
$crypted = bcrypt('password'); if(!bcrypt_check('password',$crypted)){ echo "Authorization Denied"; exit; }
Reference
(string) bseed($crypted='')
Returns a blowfish safe seed
(string) bcrypt($plaintext,$seed='')
Encrypts plain text into a blowfish hash. Pass $seed if this is an existing hash
(bool) bcrypt_check($plaintext,$crypted)
Checks a plaintext version against the hash
统计信息
- 总下载量: 407
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2013-03-22