BCrypt class

BCrypt implements OpenBSD-style Blowfish password hashing using the scheme described in "A Future-Adaptable Password Scheme" by Niels Provos and David Mazieres.

This is a jBCrypt modified class.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

checkpw(String text, String hashed) bool
Check that a text password matches a previously hashed one.
decodeBase64(String data, int maxLength) Int8List
Decode a data encoded using bcrypt's base64 scheme to a byte array with the maxLength number of bytes to decode.
encodeBase64(Int8List data, int length) String
Encode data using bcrypt's slightly-modified base64 encoding scheme with the length of bytes to encode.
gensalt({String prefix = '\$2a', int logRounds = constants.saltDefaultLogRounds, Random? secureRandom}) String
Generate a salt for use with the hashpw method.
hashpw(String password, String salt) String
Hash a password using the OpenBSD bcrypt scheme.