-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for argon2id digest #172
Conversation
028ec78
to
ab729e5
Compare
bump |
Sorry, I have been very busy lately and have not had time to review these |
slow and steady wins the race |
bump 🤷♂️ |
Will review soon, sorry |
@elijh this looks good to me... mind rebasing your branch? |
Note: for libsodium >= 1.0.15, the default digest algorithm for argon2 changed from argon2i to argon2id. This means RbNaCl::PasswordHash.argon2() will produce different results depending on which libsodium you have installed. You should now use RbNaCl::PasswordHash.argon2i() or RbNaCl::PasswordHash.argon2id() instead. RbNaCl::PasswordHash.argon_str() is unaffected.
@tarcieri done, thanks 🎉 |
Thank you! Sorry it took so long! |
Will try to do another release relatively soon. There are a few changes in the works. It might be a good opportunity to also completely revamp the way how rbnacl-libsodium works. |
## [6.0.0] (2018-11-08) [6.0.0]: RubyCrypto/rbnacl#182 * [#180](RubyCrypto/rbnacl#180) Deprecate rbnacl-libsodium. ([@tarcieri]) * [#176](RubyCrypto/rbnacl#176) Add support for XChaCha20-Poly1305. ([@AnIrishDuck]) * [#174](RubyCrypto/rbnacl#174) Fix buffer size type in `randombytes_buf` binding. ([@elijh]) * [#172](RubyCrypto/rbnacl#172) Add support for argon2id digest. ([@trofi]) * [#166](RubyCrypto/rbnacl#166) Support for non-32-byte HMAC-SHA256/512 keys. ([@nsheremet])
Add support for argon2id digest, if libsodium >= 1.0.13.
Note: for libsodium >= 1.0.15, the default digest algorithm for argon2
changed from argon2i to argon2id.
This means RbNaCl::PasswordHash.argon2() will produce different results
depending on which libsodium you have installed.
You should now use RbNaCl::PasswordHash.argon2i() or
RbNaCl::PasswordHash.argon2id() instead.
RbNaCl::PasswordHash.argon_str() is unaffected.