FLUTTER ECOSYSTEM

astudilloalex/dart-bcrypt

Dart VM에서 작동하도록 수정된 jBCrypt 코드

dart-bcrypt 프로젝트 이미지
Stars
7
Forks
4
최근 푸시(UTC)
2026. 1. 3.
프로젝트 상태
활성
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.