Bcrypt constructor
Bcrypt({
- required int cost,
- List<
int> ? salt, - BcryptVersion version = BcryptVersion.$2b,
Creates an Bcrypt instance with a sink for MAC generation.
Implementation
factory Bcrypt({
required int cost,
List<int>? salt,
BcryptVersion version = BcryptVersion.$2b,
}) {
var ctx = BcryptContext(
cost: cost,
salt: salt,
version: version,
);
return Bcrypt._(ctx);
}