bmutinda/hashing
Composer 安装命令:
composer require bmutinda/hashing
包简介
PHP set of libraries for hashing
README 文档
README
Installation
composer require bmutinda/hashing
Encrypt (Create a hashed string)
$bcrypt = new \Bmutinda\Hashing\Bcrypt();
$hashed = $bcrypt->hash($password);
Compare hash with a plain string
$bcrypt = new \Bmutinda\Hashing\Bcrypt();
$password = "My plain password";
$hashedPassword = "Long hashed string";
$isValid = $bcrypt->verify($password, $hashedPassword)
Running tests
Run this command from your terminal inside the project root
vendor/bin/phpunit tests/
统计信息
- 总下载量: 124
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-08