Browse Source

export argon2

remove-cryptography-dependency
Herbert Poul 5 years ago
parent
commit
7153f5c982
  1. 7
      README.md
  2. 1
      lib/kdbx.dart
  3. 1
      test/kdbx4_test.dart

7
README.md

@ -18,6 +18,13 @@ TODO
* Only supports v3. * Only supports v3.
# Argon2 support
root directory contains shared libraris (libargon2*) which are built from
https://github.com/authpass/argon2_ffi
# OLD INFO:
# TODO # TODO
* For v4 argon2 support would be required. Unfortunately there are no dart * For v4 argon2 support would be required. Unfortunately there are no dart

1
lib/kdbx.dart

@ -9,6 +9,7 @@ export 'src/kdbx_dao.dart' show KdbxDao;
export 'src/kdbx_entry.dart'; export 'src/kdbx_entry.dart';
export 'src/kdbx_format.dart'; export 'src/kdbx_format.dart';
export 'src/kdbx_group.dart'; export 'src/kdbx_group.dart';
export 'src/crypto/key_encrypter_kdf.dart' show Argon2;
export 'src/kdbx_header.dart' export 'src/kdbx_header.dart'
show show
KdbxException, KdbxException,

1
test/kdbx4_test.dart

@ -41,7 +41,6 @@ typedef Argon2Hash = Pointer<Utf8> Function(
class Argon2Test implements Argon2 { class Argon2Test implements Argon2 {
Argon2Test() { Argon2Test() {
// final argon2lib = DynamicLibrary.open('libargon2.1.dylib');
final argon2lib = Platform.isMacOS final argon2lib = Platform.isMacOS
? DynamicLibrary.open('libargon2_ffi.dylib') ? DynamicLibrary.open('libargon2_ffi.dylib')
: DynamicLibrary.open('libargon2_ffi.so'); : DynamicLibrary.open('libargon2_ffi.so');

Loading…
Cancel
Save