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

outdated

An interface for all dargon2 hashing functions. Provides the base outline for all implementations.

dargon2_interface #

This library generally should not be used in most contexts

This library only provides an interface to implement a dargon2-compatible argon2 hash binding.

This library is used by dargon2_core and dargon2_flutter_web to maintain cross-platform hashing functionality.

Usage #

A simple usage example:

import 'package:dargon2_interface/dargon2_interface.dart';

void main() {
  // Create an instance of TestDArgon2
  var dargon2 = TestDArgon2();
}

class TestDArgon2 extends DArgon2 {
  @override
  Future<DArgon2Result> 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}) {
    // Create an implementation for hashing passwords with the given parameters
    throw UnimplementedError();
  }

  @override
  Future<bool> verifyHashBytes(List<int> password, List<int> encodedHash, {Argon2Type type = Argon2Type.i}) {
    // Create an implementation for verifying passwords with the given parameters
    throw UnimplementedError();
  }
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Licensing #

2
likes
0
pub points
47%
popularity

Publisher

verified publishertmthecoder.dev

An interface for all dargon2 hashing functions. Provides the base outline for all implementations.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

convert

More

Packages that depend on dargon2_interface