hashString static method

Uint8List hashString(
  1. String password,
  2. Uint8List salt, {
  3. int? outlen,
  4. int? opslimit,
  5. int? memlimit,
  6. PasswordHashAlgorithm alg = PasswordHashAlgorithm.Default,
})

Derives a hash from given string password and salt.

Implementation

static Uint8List hashString(String password, Uint8List salt,
        {int? outlen,
        int? opslimit,
        int? memlimit,
        PasswordHashAlgorithm alg = PasswordHashAlgorithm.Default}) =>
    hash(utf8.encoder.convert(password), salt,
        outlen: outlen, opslimit: opslimit, memlimit: memlimit);