Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
/ dargon2_core Public archive

Core bindings for dargon2, loaded without any library. Using this plugin requires loading the library yourself

License

Notifications You must be signed in to change notification settings

tmthecoder/dargon2_core

Repository files navigation

dargon2_core

NOTE: Archive

This repository has been archived. Don't worry, dargon2_core is still in development with full support! I've just moved this repository and all dargon2 components into a single dargon2 repository: https://github.com/tmthecoder/dargon2


This library generally should not be used in most contexts

This library is an umbrella library that contains all method bindings for dargon2 and dargon2_flutter's mobile components.

This library uses a given library (by dargon2 or dargon2_flutter) to create the bindings between Dart and argon2's C library. If you're using this library directly, you'll need to supply a LibLoader conforming to the class

Usage

A simple usage example:

import 'dart:ffi';

import 'package:dargon2_core/dargon2_core.dart';

void main() {
  // Create an instance of DArgon2
  final argon2 = DArgon2(TestLibLoader());
}

class TestLibLoader implements LibLoader {
  @override
  String getPath() {
    // Return the Argon2 Reference Library's path here
    throw UnimplementedError();
  }

  @override
  DynamicLibrary loadLib() {
    // Return the actual loaded DynamicLibary here
    throw UnimplementedError();
  }
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Licensing

About

Core bindings for dargon2, loaded without any library. Using this plugin requires loading the library yourself

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages