PassCrypt.pbkdf2 constructor

PassCrypt.pbkdf2({
  1. int iterations = 10000,
  2. required HmacHash algo,
})

Initialize a PBKDF2-based PassCrypt.

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

Implementation

PassCrypt.pbkdf2({int iterations = 10000, required HmacHash algo})
    : params = {'N': iterations},
      _algorithm = 1,
      _hmac = parsePBKDF2(algo),
      _keyDerivator = PBKDF2KeyDerivator(parsePBKDF2(algo));