v1.2.0
bcrypt
이 패키지는 Dart VM과 함께 작동하기 위해 수정된 jBCrypt 코드를 사용합니다.
43좋아요 3.1만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.