pc-dart
pc-dart copied to clipboard
Add Argon2 Password Hashing
Argon2 is the closest thing to a standard in the password hashing space. It should be an option that we provide.
Implementation Link: https://github.com/bcgit/bc-java/blob/master/core/src/main/java/org/bouncycastle/crypto/generators/Argon2BytesGenerator.java
I'm going to take this. Will report back in a few days...
It's been more than a few days. Meant to start this a while ago, but I've been busy lately. Maybe I'll commit post-release?
@AKushWarrior maybe it helps. There is a pure dart implementation of blake2: https://github.com/james-alex/blake2
We have blake2b in this library. I've just been insanely busy for a while.
@AKushWarrior ok, sorry. I just wanted to help. As a developer being busy is your burden ;). What I'm goining to try is to crosscompile the reference implementation and try to ffi it. Lets see where this goes...
@konsultaner No need to apologize. I'm a little frustrated that I haven't been able to work on some open-source projects more, but you're right to say that my burden is to labor on.
It looks like there's no pure-dart implementation, but there is this: https://pub.dev/packages/dargon2 I have no idea of the quality, but it does seem to be what you were planning to do.
@AKushWarrior Thanks for that link. I want to have a build for all plattforms including the web. So it needs to compile to wasm as well. This is more an exercise too digg into that topic.
FYI: https://github.com/bcgit/pc-dart/pull/108
FYI:
- https://github.com/gmpassos/argon2
- https://pub.dev/packages/argon2