BcryptContext class

The configuration used by the Bcrypt algorithm

Constructors

BcryptContext.new({required int cost, List<int>? salt, BcryptVersion version = BcryptVersion.$2b})
Creates an BcryptContext instance from encoded string.
factory
BcryptContext.fromEncoded(CryptData data)
Creates an BcryptContext instance from encoded string.
factory

Properties

cost int
Number of rounds in terms of power of 2
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
salt Uint8List
16-byte salt
final
version BcryptVersion
The BCrypt version
final

Methods

makePassword(List<int> password) Uint32List
Make the 72-byte long password using version-specific strategy.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toEncoded([Uint8List? hashBytes]) String
Gets a PHC-compliant encoded string
toString() String
A string representation of this object.
inherited

Operators

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