v1.2.0
bcrypt
このパッケージは、Dart VMで動作するために修正されたjBCryptコードを使用しています。
46いいね 9万30日間ダウンロード155Pub ポイント
AndroidiOSWebmacOSWindowsLinux
Dart VMで動作するように修正されたjBCryptコード
以下は英語原文のスナップショットです。最新版は 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 ↗