Does not work on JS/Web platform?
Opened this issue · 2 comments
hpoul commented
When I understand the README.md
correctly, this package be working when compiled to javascript and used on the web?
for all Dart platforms (JS/Web, Flutter, VM/Native).
but when trying to run the tests on chrome:
➜ argon2 git:(master) pub run test -p chrome
Precompiling executable... (10.4s)
Precompiled test:test.
00:02 +0: compiling test/argon2_test.dart
lib/src/argon2_base.dart:61:27:
Error: The integer literal 0xFFFFFFFFFFFFFFFF can't be represented exactly in JavaScript.
static const int M32L = 0xFFFFFFFFFFFFFFFF;
^^^^^^^^^^^^^^^^^^
lib/src/argon2_extension.dart:73:15:
Error: The integer literal 0xFFFFFFFFFFFFFFFF can't be represented exactly in JavaScript.
((0xFFFFFFFFFFFFFFFF) ^ ((1 << (64 - count)) - 1));
^^^^^^^^^^^^^^^^^^
Error: Compilation failed.
BitPampers commented
Same here. Any activity in this repository to maybe fix this?
Or at least remove the web compatibility misleading mention from the description and pub.dev
gmpassos commented
This implementation of Argon2 was incorporated into Pointycastle:
https://pub.dev/packages/pointycastle
In the last version they have implemented support for JS/Web/Browser computation.