dargon2_flutter_web library
This plugin contains the web-specific JS bindings for argon2 hashing using hash-wasm
.
This is the web platform implementation of the dargon2_flutter plugin
To use this library in your code, use the federated dargon2_flutter plugin:
import 'package:dargon2_flutter/dartgon2_flutter.dart';
For detailed usage please look at the example in dargon2_flutter
Classes
- DArgon2
- A class that houses all of the methods to hash and verify a password using the Argon2 password hashing algorithm.
- DArgon2FlutterWeb
-
The web
PlatformInterface
of DArgon2. Loads argon2 through hashwasm's WebAssembly-based implementation. Binds the dargon2 mappings to the JS ones. - DArgon2Result
- A class that stores the results from an Argon2 Hashing operation. Allows for a user to get various values from the List
- Salt
- A class to abstract and handle Salts for the Argon2 hashing process. Allows for a user to create a salt with given bytes (List
Enums
- Argon2Type
- The enum to determine the Argon2 Type used (Argon2i, Argon2d, Argon2id).
- Argon2Version
- The enum used to determine the Argon2 Version used (0x10 or 0x13).
- DArgon2ErrorCode
- The enum with all of the Argon2 Error codes, seen directly from the C Reference Library of Argon2. The codes are sent into the Exception object as well as used to retrieve the error message from the C library.
Properties
Exceptions / Errors
- DArgon2Exception
- A generic exception class to present each of the thrown exceptions from the Argon2 Library to allow users to know exactly what errored