hashPassword method

String hashPassword(
  1. String password,
  2. String salt
)

Hashes a password with salt using PBKDF2 algorithm.

See hashRounds, hashLength and hashFunction for more details. This method invoke AuthUtility.generatePasswordHash with the above inputs.

Implementation

String hashPassword(String password, String salt) {
  return AuthUtility.generatePasswordHash(password, salt,
      hashRounds: hashRounds,
      hashLength: hashLength,
      hashFunction: hashFunction);
}