v1.2.0
bcrypt
该包使用修改后的 jBCrypt 代码以在 Dart VM 上运行。
46喜欢 9万近 30 天下载155Pub 分数
AndroidiOSWebmacOSWindowsLinux
jBCrypt 修改后的代码以在 Dart VM 上运行
以下为英文项目原文快照,最新内容请访问 GitHub。
Hash your passwords with BCrypt algorithm, this is a jBCrypt modified code to work with Dart.
Use BCrypt password-hashing function to keep your system secure.
Only add bcrypt package to your pubspec.yaml.
dependencies:
bcrypt: ^1.2.0
Use Bcrypt to hash and check password.
final String hashed = BCrypt.hashpw('password', BCrypt.gensalt());
// $2a$10$r6huirn1laq6UXBVu6ga9.sHca6sr6tQl3Tiq9LB6/6LMpR37XEGu
final bool checkPassword = BCrypt.checkpw('password', hashed);
// true
This package is modified jBCrypt code used in Java and Spring Boot to improve security when saving passwords.
先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗