FLUTTER ECOSYSTEM

astudilloalex/dart-bcrypt

código modificado do jBCrypt para funcionar com a VM do Dart

Capa do projeto dart-bcrypt
Stars
7
Forks
4
Último push (UTC)
3 de jan. de 2026
Status do projeto
Ativo
astudilloalex GitHub avatar
LinguagensDart

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 2 itens
  • lintDesenvolvimento^2.8.0
  • testDesenvolvimento^1.28.0

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher 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.