bcrypt 1.1.2 copy "bcrypt: ^1.1.2" to clipboard
bcrypt: ^1.1.2 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);
}
28
likes
155
pub points
96%
popularity

Publisher

verified publisheralexastudillo.com

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