BcryptSecurity constructor

const BcryptSecurity(
  1. String name, {
  2. required int nb,
})

Creates a custom BcryptSecurity profile.

Parameters:

  • name is a descriptive name for this profile.
  • nb is the cost factor as a power of 2 (i.e. 2^nb rounds).

Implementation

const BcryptSecurity(
  this.name, {
  required this.nb,
});