DArgon2Platform class abstract
The base PlatformInterface
for all dargon2_flutter
platform-specific
implementations to follow. Provides the hashing functionality through the
DArgon2
mixin and federated functionality from PlatformInterface
.
- Inheritance
-
- Object
- PlatformInterface
- DArgon2Platform
- Implementers
Constructors
- DArgon2Platform.new()
- The empty constructor that passes on the token to the superclass.
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
inherited
-
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
inherited
-
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 Properties
- instance ↔ DArgon2Platform
-
The default instance of DArgon2Platform to use.
getter/setter pair