password_hasher 0.2.0 copy "password_hasher: ^0.2.0" to clipboard
password_hasher: ^0.2.0 copied to clipboard

Dart 1 only

Utility for hashing passwords

password_hasher #

This is a small utility to help with hashing passwords. It uses PBKDF2 to generate password hashes.

Example:

// create a hasher with the default salt generator and hash (SHA256). The number of
// iterations defaults to 1000 and the key length defaults to 32 bytes.
var hasher = new PasswordHasher();

// the password will be hashed with 32 bytes of randomly generated salt
var hash = hasher.hashPassword("mypassword");

// the returned hash contains the salt and the hashed password, and can be
// checked against a password using checkPassword():
var passwordOk = hasher.checkPassword(hash, "mypassword");

Build Status

0
likes
10
points
6
downloads

Publisher

unverified uploader

Weekly Downloads

Utility for hashing passwords

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

crypto, pbkdf2

More

Packages that depend on password_hasher