Bcrypt class

Implementation for the bcrypt key generator

Inheritance

Constructors

Bcrypt.new({required int cost, List<int>? salt, BcryptVersion version = BcryptVersion.$2b})
Creates an Bcrypt instance with a sink for MAC generation.
factory
Bcrypt.fromEncoded(CryptData data)
Creates an Bcrypt instance from encoded string.
factory
Bcrypt.fromSecurity(BcryptSecurity security, {List<int>? salt, BcryptVersion version = BcryptVersion.$2b})
Creates an Bcrypt instance from BcryptSecurity parameter.
factory

Properties

derivedKeyLength int
The length of derived key in bytes
final
hashCode int
The hash code for this object.
no setterinherited
name String
The name of this algorithm
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

convert(List<int> password) BcryptHashDigest
Generate a derived key using the Bcrypt algorithm.
override
hex(List<int> password) String
Returns the derived key in hexadecimal.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
string(String password, [Encoding? encoding]) HashDigest
Process the password string and returns derived key as HashDigest.
inherited
toString() String
A string representation of this object.
inherited
verify(List<int> derivedKey, List<int> password) bool
Verify if the derivedKey was derived from the original password using the current parameters.
inherited

Operators

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