Scrypt.fromSecurity constructor
Scrypt.fromSecurity(
- ScryptSecurity security, {
- List<
int> ? salt, - 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,
);
}