You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using version 20190702 of argon2, I hit the limit for maximum input length:
printf 'x%.0s' {1..128} | argon2 my_salt_is_here
Error: Provided password longer than supported in command line utility
Also in argon's source code I can see that the maximum password length is 127.
I was wondering:
Whether there are ways around that length limit, the error message suggests that the command line utility doesn't support longer inputs. Maybe argon2 per se doesn't have that limitation.
What's the reason for limiting input length to 127 bytes.
Thanks!
The text was updated successfully, but these errors were encountered:
Correct, I think argon2 only has a limitation of 4GB (as that's the limit of a 32-bit unsigned integer).
2. What's the reason for limiting input length to 127 bytes.
I assume because it's stored on the stack. In my experience there's a convention to be nice to the stack and stay below ~1KB of usage. I'm sure if the buffer was allocated on the heap it would be able to be much larger. Perhaps you could open a PR to change it.
Hi and thanks for argon2!
Using version 20190702 of argon2, I hit the limit for maximum input length:
Also in argon's source code I can see that the maximum password length is 127.
I was wondering:
Thanks!
The text was updated successfully, but these errors were encountered: