dargon2_flutter library

All of the actual hashing and dart:ffi code is located in the dargon2 plugin. To view the api reference for the actual hashing methods, take a look at dargon2's API Reference

This is a wrapper library to hash and verify strings using the Argon2 hashing algorithm

To use this library in your code:

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.
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 with Flutter library loading
final

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