PassCryptRaw class
Class for password hashing in scrypt and PBKDF2.
This version of PassCrypt is raw, meaning that it expects all inputs to be Uint8List, and returns Uint8Lists. For a higher-level solution, PassCrypt is recommended.
Constructors
- PassCryptRaw.pbkdf2({int iterations = 10000, required HmacHash hmac})
- Initialize a PBKDF2-based PassCrypt.
- PassCryptRaw.scrypt({int cpu = 16384, int mem = 16, int par = 1})
- Initialize a Scrypt-based PassCrypt().
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
check(
{required Uint8List plain, required Uint8List hashed, required Uint8List salt, int len = 32}) → bool - Checks hashed password given salt, plaintext, length, and hashedtext.
-
hash(
{required Uint8List salt, required Uint8List plain, int len = 32}) → Uint8List -
Hashes password given salt, text, and length.
override
-
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