PasswordHasher constructor

PasswordHasher({
  1. required String pepper,
  2. Random? random,
})

pepper is added all passwords that are hashed

random allows you to change the seed used in the randomness or share it with other objects.

Implementation

PasswordHasher({required this.pepper, Random? random})
    : _random = random ?? Random.secure();