Scrypt class

scrypt (RFC 7914) key derivation.

Constructors

Scrypt(int n, int r, int p)
Creates a Scrypt instance with CPU/memory cost n, block size r, and parallelization p. Throws BuError if the parameters are out of range or n isn't a power of 2.

Properties

hashCode → int
The hash code for this object.
no setterinherited
n ↔ int
latefinal
p ↔ int
latefinal
r ↔ int
latefinal
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

derive(List<int> password, List<int> salt, int dkLen) → BuBytes
Derives a dkLen-byte key from password and salt.
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

Static Methods

deriveKey(List<int> password, List<int> salt, {int dkLen = 32, int r = 8, int n = 8192, int p = 1}) → BuBytes