pbkdf2DeriveKey static method
Derive a key from a password using PBKDF2 algorithm
Implementation
static List<int> pbkdf2DeriveKey(
{required List<int> password,
required List<int> salt,
required int iterations,
HashFunc? hash,
int? dklen}) {
final hashing = (hash ?? () => SHA512());
return PBKDF2.deriveKey(
mac: () => HMAC(hashing, password),
salt: salt,
iterations: iterations,
length: dklen ?? hashing().getDigestLength);
}