pc-dart icon indicating copy to clipboard operation
pc-dart copied to clipboard

Add Argon2 Password Hashing

Open AKushWarrior opened this issue 4 years ago • 9 comments

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

AKushWarrior avatar Jun 09 '20 16:06 AKushWarrior

I'm going to take this. Will report back in a few days...

AKushWarrior avatar Jun 13 '20 04:06 AKushWarrior

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 avatar Jun 29 '20 05:06 AKushWarrior

@AKushWarrior maybe it helps. There is a pure dart implementation of blake2: https://github.com/james-alex/blake2

konsultaner avatar Mar 15 '21 19:03 konsultaner

We have blake2b in this library. I've just been insanely busy for a while.

AKushWarrior avatar Mar 15 '21 20:03 AKushWarrior

@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 avatar Mar 16 '21 06:03 konsultaner

@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 avatar Mar 16 '21 06:03 AKushWarrior

@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.

konsultaner avatar Mar 16 '21 07:03 konsultaner

FYI: https://github.com/bcgit/pc-dart/pull/108

gmpassos avatar Jun 17 '21 02:06 gmpassos

FYI:

  • https://github.com/gmpassos/argon2
  • https://pub.dev/packages/argon2

gmpassos avatar Jun 17 '21 05:06 gmpassos