PassCryptRaw.pbkdf2 constructor

PassCryptRaw.pbkdf2({
  1. int iterations = 10000,
  2. required HmacHash hmac,
})

Initialize a PBKDF2-based PassCrypt.

Iterations is the number of hashes that will be performed. This is a typical time v. security tradeoff.

Implementation

PassCryptRaw.pbkdf2({int iterations = 10000, required HmacHash hmac})
    : _algorithm = 1,
      _params = {'N': iterations} {
  _hmac = parsePBKDF2(hmac);
}