v1.2.0
bcrypt
इस पैकेज में डार्ट VM के साथ काम करने के लिए संशोधित jBCrypt कोड का उपयोग किया गया है।
43लाइक 31.3 हज़ार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.