DArgon2 class

A class that houses all of the methods to hash and verify a password using the Argon2 password hashing algorithm.

This should be used via the argon2 field.

Constructors

DArgon2(LibLoader loader)

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

hashPasswordBytes(List<int> password, {required Salt salt, int iterations = 32, int memory = 256, int parallelism = 2, int length = 32, Argon2Type type = Argon2Type.i, Argon2Version version = Argon2Version.V13}) Future<DArgon2Result>
The Future method to hash a List
hashPasswordBytesSync(List<int> password, {required Salt salt, int iterations = 32, int memory = 256, int parallelism = 2, int length = 32, Argon2Type type = Argon2Type.i, Argon2Version version = Argon2Version.V13}) DArgon2Result
The method to hash a byte array of type List
hashPasswordString(String password, {required Salt salt, int iterations = 32, int memory = 256, int parallelism = 2, int length = 32, Argon2Type type = Argon2Type.i, Argon2Version version = Argon2Version.V13}) Future<DArgon2Result>
The Future method to hash a String password with Argon2
hashPasswordStringSync(String password, {required Salt salt, int iterations = 32, int memory = 256, int parallelism = 2, int length = 32, Argon2Type type = Argon2Type.i, Argon2Version version = Argon2Version.V13}) DArgon2Result
The method to hash a password of type String with Argon2.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
verifyHashBytes(List<int> password, List<int> encodedHash, {Argon2Type type = Argon2Type.i}) Future<bool>
The Future method to handle verifying a List
verifyHashBytesSync(List<int> password, List<int> encodedHash, {Argon2Type type = Argon2Type.i}) bool
The method to verify a List
verifyHashString(String password, String encodedHash, {Argon2Type type = Argon2Type.i}) Future<bool>
The Future method to handle verifying a String argon2 hash against a String password
verifyHashStringSync(String password, String encodedHash, {Argon2Type type = Argon2Type.i}) bool
The method to verify a String password and a String encodedHash.

Operators

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