v1.2.0
bcrypt
此套件使用修改過的 jBCrypt 程式碼,以便在 Dart VM 上運作。
43喜歡 3.1萬近 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.