Bcrypt constructor

Bcrypt({
  1. required int cost,
  2. List<int>? salt,
  3. 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);
}