FLUTTER ECOSYSTEM

astudilloalex/dart-bcrypt

Dart VM पर काम करने के लिए jBCrypt संशोधित कोड

dart-bcrypt प्रोजेक्ट कवर
Stars
7
Forks
4
अंतिम पुश (UTC)
3 जन॰ 2026
प्रोजेक्ट स्थिति
सक्रिय
astudilloalex GitHub avatar
भाषाएँDart

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 2 आइटम
  • lintडेवलपमेंट^2.8.0
  • testडेवलपमेंट^1.28.0

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

style: lint

Hash your passwords with BCrypt algorithm, this is a jBCrypt modified code to work with Dart.

Features

Use BCrypt password-hashing function to keep your system secure.

Getting started

pub package

Only add bcrypt package to your pubspec.yaml.

dependencies:
  bcrypt: ^1.2.0

Usage

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

Additional information

This package is modified jBCrypt code used in Java and Spring Boot to improve security when saving passwords.