Search packages, repositories and app categories

GitHub repositoryastudilloalex/dart-bcrypt

dart-bcrypt

jBCrypt modified code to work with Dart VM

dart-bcrypt project cover
Stars
7
Forks
4
Last push (UTC)
Jan 3, 2026
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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.

astudilloalex GitHub avatar
GitHub author

astudilloalex ↗

LanguagesDart

Packages published by this repository

Dependencies used

Dependency list 2 items

  • lintDevelopment^2.8.0
  • testDevelopment^1.28.0

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗