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

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

example/dargon2_interface_example.dart

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();
  }
}
2
likes
160
pub points
47%
popularity

Publisher

verified publishertmthecoder.dev

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

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

convert

More

Packages that depend on dargon2_interface