fargon2 1.0.1 copy "fargon2: ^1.0.1" to clipboard
fargon2: ^1.0.1 copied to clipboard

A plugin for generating a hash based on Argon2 algorithm in Android / iOS platform.

fargon2 #

Run flutter test

A plugin for generating a hash based on Argon2 algorithm in Android / iOS platform.

What is Argon2 #

Argon2 is a password hashing algorithm. If you want to know more details, please refer to the following document

Getting Started #

Add a dependency in your pubspec.yaml:

dependencies:
  fargon2: ^0.0.1
import 'package:fargon2/fargon2.dart';

void main() {
  // mode options: argon2id, argon2i, argon2d
  final hash = await Fargon2(mode: Fargon2Mode.argon2id).hash(
        passphrase: 'mypassphrase',
        salt: 'mysalt01',
        hashLength: 16,
        iterations: 3,
        parallelism: 2,
        memoryKibibytes: 65536,
  );
  print(hash); // p8kGaAwsB0ZZhs/a1yEUcQ==
}

Acknowledgments #

This dart package is a wrapper of CatCrypto and argon2kt.

Compared to those, the code I've written is short. I would like to express my gratitude to them and all contributors.

4
likes
150
points
32
downloads

Publisher

verified publisheriktakahiro.dev

Weekly Downloads

A plugin for generating a hash based on Argon2 algorithm in Android / iOS platform.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on fargon2