Scrypt.fromSecurity constructor

Scrypt.fromSecurity(
  1. ScryptSecurity security, {
  2. List<int>? salt,
  3. int derivedKeyLength = 64,
})

Creates an Scrypt instance from ScryptSecurity parameter.

Implementation

factory Scrypt.fromSecurity(
  ScryptSecurity security, {
  List<int>? salt,
  int derivedKeyLength = 64,
}) {
  return Scrypt(
    salt: salt,
    cost: security.N,
    blockSize: security.r,
    parallelism: security.p,
    derivedKeyLength: derivedKeyLength,
  );
}