-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add support for Argon2 password hashing #250
Comments
The libargon2 in Ubuntu (from https://github.com/P-H-C/phc-winner-argon2) should do everything that's needed I think. |
I think you just need to use |
I don't think I'm not super excited about those workarounds and additional dependencies, and it might take a while to sort this all out. |
So the Ruby gem is using a local copy of the argon2 C library in https://github.com/technion/ruby-argon2/tree/master/ext to include the "decode_string" function straight from the source code. The Ubuntu package you've mentioned only exposes argon2.h, which is the official API (see https://packages.debian.org/sid/amd64/libargon2-dev/filelist). Directly including any security related source code raises a few red flags here. Related issue: P-H-C/phc-winner-argon2#314 Regarding the type, I think the expectation is to parse the "$argon2..:" hash value and figure out for yourself what the respective type is. Again, this is a big no go. To me, the hash value should be an opaque string. How about providing the hash and a password to some function and have the library figure out the rest, obviously using the official API? https://github.com/technion/ruby-argon2/blob/master/ext/argon2_wrap/argon_wrap.c#L125-L136 |
Hey @mmd-osm. Was playing around with this project's Dockerfile in the master branch and noticed that you also need to install |
Yes, that's spot on, will do. |
I added libargon2-1 instead, seems to work ok here. |
Fix pushed as e1dd56e |
See openstreetmap/openstreetmap-website#3353
TODOs:
Test package on ubuntu 20.04 container: deps ok.
The text was updated successfully, but these errors were encountered: