password_dart 2.0.1
password_dart: ^2.0.1 copied to clipboard
A set of high-level APIs over PointyCastle to hash and verify passwords securely.
import 'package:password_dart/password.dart';
void main() {
final password = 'secret';
final algorithm = PBKDF2();
final hash = Password.hash(password, algorithm);
print(hash);
print(Password.verify(password, hash));
print(Password.verify('wrongpass', hash));
}