Open Paradoxu opened 3 years ago
Argon2 is not supported on web currently; it requires 64-bit integers, and we have no way to simulate that behavior from Dart code compiled to JS.
The Android one is a bug.
Argon2 is not supported on web currently; it requires 64-bit integers, and we have no way to simulate that behavior from Dart code compiled to JS.
The Android one is a bug.
Shouldn't be possibile to use the BigInt to represent such large numbers? 🤔 never tested but both Dart and JS has this class to represent integers larger than 2^53-1
PR #133 may be helpful. But I don't think implementing argon2 in pure dart is a good choice.
Are there plans to make a similar fix for Poly1305, which still has the calls to assertFullWidthInteger?
Are there plans to make a similar fix for Poly1305, which still has the calls to assertFullWidthInteger?
join the question
I used this package: cryptography https://pub.dev/packages/cryptography
I took this example from the Argon2 test:
But when I use it on Google Chrome I get this exception:
And when I try it on an android device I get this error:
Am I calling the library with wrong parameters? If so, how should I use it?
Flutter version: 2.2.3 Windows: 10 Android: 11 Chrome version: 92.0.4515.107