bcrypt 1.1.3 copy "bcrypt: ^1.1.3" to clipboard
bcrypt: ^1.1.3 copied to clipboard

This package use jBCrypt modified code to work with Dart VM.

example/bcrypt_example.dart

// ignore_for_file: avoid_print

import 'package:bcrypt/bcrypt.dart';

void main() {
  final String passwordHashed = BCrypt.hashpw(
    'password',
    BCrypt.gensalt(),
  );
  print(passwordHashed);
  final bool checkPassword = BCrypt.checkpw(
    'password',
    '\$2a\$10\$Yh5aw8xmKr3TS1Gk2UX98Oz7PT.Qhz5nnmGBb4dnayrTitMIDTKhK',
  );
  print(checkPassword);
}
31
likes
155
points
8.21k
downloads

Publisher

verified publisheralexastudillo.com

Weekly Downloads

This package use jBCrypt modified code to work with Dart VM.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause-Views (license)

More

Packages that depend on bcrypt