dint-dev / cryptography

Cryptography for Flutter developers: encryption, digital signatures, key agreement, etc.
https://pub.dev/packages/cryptography
Apache License 2.0
155 stars 75 forks source link

Argon2id kda throws UnimplementedError - Any timeframe? #161

Closed levelupatlas-mat closed 9 months ago

levelupatlas-mat commented 10 months ago

After trying to figure out if my inputs/parameters weren't supported yet for the Argon2id key derivation, I found out that the function simply throws at the end:

throw UnimplementedError('Does not pass tests yet.');

Is there any information or discussion regarding these tests' development? I was led to using that algorithm by reading the documentation, which very clearly encourages Argon2id over Pbdkf2:

PBKDF2 is a popular choice for password hashing, but much better algorithms exists (such as Argon2id).

Maybe that should be made clearer in the documentation when an algorithm isn't yet supported, as to avoid wasting time trying to use it.

terrier989 commented 9 months ago

Hi! Thank you for the issue report. Argon2id was implemented at v2.7.0.