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 options for hash length and bare output to exe #109

Closed
wants to merge 1 commit into from

Conversation

alipha
Copy link
Contributor

@alipha alipha commented Feb 20, 2016

I saw on khovratovich/Argon2#21 that it was requested to be able to have the argon2 utility be able to output only the hexadecimal of the hash, and I thought that was useful, so I implemented that (-r) along with outputting only your $argon2i$... encoded string (-e). I also thought it might be nice to generate different output hash lengths, so I added that too (-h length). A max length of 1024 seems a little large, but having a max at all seems a bit arbitrary.

@ranisalt
Copy link
Contributor

While you're at it, mind that you need not (and IMHO should not) to hardcode an ENCODED_LEN, as it can be dynamically calculated, check this function.

As of today, the utility only permits salts up to 16 bytes and your solution keeps an upper limit, although increasing it.

@khovratovich
Copy link
Member

Could one of you bring the encoded calculation function to the code? Then we can approve this PR.

@ranisalt
Copy link
Contributor

ranisalt commented Mar 3, 2016

Gonna do it as soon as I get home.

@khovratovich
Copy link
Member

Please resolve the conflicts.

@daniel-dinu
Copy link
Member

@alipha please resolve the conflicts, else your pull request will be closed

@alipha alipha closed this Apr 4, 2016
@alipha
Copy link
Contributor Author

alipha commented Apr 4, 2016

My apologies for the lack of attention of this pull request.

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.

4 participants