ScryptSecurity class

This contains some recommended values of memory, iteration and parallelism values for Scrypt algorithm.

It is best to try out different combinations of these values to achieve the desired runtime on a target machine.

Constructors

ScryptSecurity.new(String name, {required int N, required int r, required int p})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
N int
The CPU/Memory cost parameter as a power of 2. 1 < N < 2^32
final
name String
final
p int
The parallelization parameter. p <= (2^32 - 1) / (128 * r)
final
r int
The size of a single block in bytes
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

good → const ScryptSecurity
Provides good security. The default parameters from RFC-7914
little → const ScryptSecurity
Provides low security. Can be used on low-end devices.
moderate → const ScryptSecurity
Provides moderate security.
owasp → const ScryptSecurity
Provides strong security recommended by OWASP.
owasp2 → const ScryptSecurity
The second recommendation by OWASP.
owasp3 → const ScryptSecurity
The third recommendation by OWASP.
owasp4 → const ScryptSecurity
The fourth recommendation by OWASP.
owasp5 → const ScryptSecurity
The fifth recommendation by OWASP.
strong → const ScryptSecurity
Provides strong security.
test → const ScryptSecurity
Provides a very low security. Use it only for test purposes.