dargon2_flutter library

This plugin is the federated plugin for argon2 hashing functionality in Flutter. It utilizes the Argon2 C reference implementation for mobile and the hash-wasm WebAssembly implementation for web.

To use this library in your code, add the following import:

import 'package:dargon2_flutter/dartgon2_flutter.dart';

For detailed usage please look at the example

Classes

DArgon2
A class that houses all of the methods to hash and verify a password using the Argon2 password hashing algorithm.
DArgon2Flutter
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

argon2 DArgon2
The globally accessible instance of DArgon2. It provides all hashing and verification functionality.
no setter

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