Skip to content
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

Merged
merged 1 commit into from
Apr 9, 2018

Conversation

elijh
Copy link
Contributor

@elijh elijh commented Jan 23, 2018

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.

@elijh
Copy link
Contributor Author

elijh commented Feb 6, 2018

bump

@tarcieri
Copy link
Contributor

tarcieri commented Feb 6, 2018

Sorry, I have been very busy lately and have not had time to review these

@elijh
Copy link
Contributor Author

elijh commented Feb 6, 2018

slow and steady wins the race

@elijh
Copy link
Contributor Author

elijh commented Mar 29, 2018

bump 🤷‍♂️

@tarcieri
Copy link
Contributor

Will review soon, sorry

@tarcieri
Copy link
Contributor

tarcieri commented Apr 9, 2018

@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.
@elijh
Copy link
Contributor Author

elijh commented Apr 9, 2018

@tarcieri done, thanks 🎉

@tarcieri tarcieri merged commit 42ff322 into RubyCrypto:master Apr 9, 2018
@tarcieri
Copy link
Contributor

tarcieri commented Apr 9, 2018

Thank you! Sorry it took so long!

@tarcieri
Copy link
Contributor

tarcieri commented Apr 9, 2018

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.

@tarcieri tarcieri mentioned this pull request Nov 8, 2018
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request Dec 17, 2018
## [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])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants