PasswordHash class

Provides an Argon2 password hashing scheme implementation.

Constructors

PasswordHash()

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

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

hash(Uint8List password, Uint8List salt, {int? outlen, int? opslimit, int? memlimit, PasswordHashAlgorithm alg = PasswordHashAlgorithm.Default}) Uint8List
Derives a hash from given password and salt.
override
hashStorage(Uint8List password, {int? opslimit, int? memlimit}) String
Computes a password verification string for given password.
hashString(String password, Uint8List salt, {int? outlen, int? opslimit, int? memlimit, PasswordHashAlgorithm alg = PasswordHashAlgorithm.Default}) Uint8List
Derives a hash from given string password and salt.
hashStringStorage(String password, {int? opslimit, int? memlimit}) String
Computes a password verification string for given string password.
hashStringStorageModerate(String password) String
Computes a password verification string for given password in moderate mode.
hashStringStorageSensitive(String password) String
Computes a password verification string for given password in sensitive mode.
randomSalt() Uint8List
Generates a random salt for use in password hashing.
verifyStorage(String storage, String password) bool
Verifies that the storage is a valid password verification string for given password.