dbcrypt
2.0.0, released 6 years ago by erlantz.net
A Dart port of jBCrypt for hashing and checking passwords with a configurable work factor.
WASM-ready
What it does
It encrypts passwords using BCrypt with a configurable work factor to increase off-line cracking costs. It also provides methods to verify plain passwords against hashed ones.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to securely hash passwords in a Dart application
- You need to verify user-entered passwords against stored BCrypt hashes
Skip it when
- You need general-purpose cryptographic hashing like SHA-256 or MD5
Strengths
- Configurable work factor
- Supports $2y$ and $2b$ versions of BCrypt
- Simple API for hashing and checking passwords
Weaknesses
- License is unknown
- No external dependencies listed but limited features beyond BCrypt
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:dbcrypt/dbcrypt.dart';
main() {
var plainPassword = "P@55w0rd";
var hashedPassword = new DBCrypt().hashpw(plainPassword, new DBCrypt().gensalt());
var isCorrect = new DBCrypt().checkpw(plainPassword, hashedPassword);
}Alternatives
Packages that do the same job and could replace dbcrypt.
- bcrypt
Hashes passwords using the BCrypt algorithm.
61Compare - universal_platform
Platform detection across Flutter, Dart web, and desktop without errors
50Compare - zxcvbn
Dart port of Dropbox's zxcvbn password strength estimator library.
50Compare - launcher_icon_switcher
Dynamically switch app launcher icons on Android and iOS.
40Compare