DArgon2Desktop class
The desktop PlatformInterface
of DArgon2. Loads argon2 with
a DesktopLibLoader
, which utilized the supplied platform C binaries
over Dart FFI.
- Inheritance
-
- Object
- PlatformInterface
- DArgon2Platform
- DArgon2Desktop
Constructors
Properties
- argon2 ↔ DArgon2
-
The loaded instance of DArgon2, which is a
DArgon2Native
instance as opposed to the web variant. This instance requires aDesktopLibLoader
getter/setter pair - 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
override
-
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
inherited
-
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
override
-
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
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
) → void - Register the plugin's platform instance as an instance of this class, DArgon2Desktop.