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

Invalid Hash generated on Raspberry Pi 4 with latest 64 bit Linux deb 11 #329

Closed
guil-g opened this issue Nov 16, 2021 · 5 comments
Closed

Comments

@guil-g
Copy link

guil-g commented Nov 16, 2021

Hash generated does not match with argon2.online. Pls. help.

@ufukty
Copy link

ufukty commented Nov 16, 2021

I think if you share parameters you used for argon2.online and Linux, it would make it easier to people for helping you

@guil-g
Copy link
Author

guil-g commented Nov 17, 2021

$ echo '123456789012345678901234567890' | argon2 salzwasser
Type: Argon2i
Iterations: 3
Memory: 4096 KiB
Parallelism: 1
Hash: 2e38a5c031c9c5d2c55b11f2ef35724e8f9bca28a111f834196374ee210d398c
Encoded: $argon2i$v=19$m=4096,t=3,p=1$c2Fsendhc3Nlcg$LjilwDHJxdLFWxHy7zVyTo+byiihEfg0GWN07iENOYw

$ uname -a
Linux ras 5.10.63-v8+ #1459 SMP PREEMPT Wed Oct 6 16:42:49 BST 2021 aarch64 GNU/Linux

$ apt list argon2
Listing... Done
argon2/stable,now 020171227-0.2 arm64 [installed]
argon2/stable 0
20171227-0.2 armhf

Compiling from sources makes no difference.

@ufukty
Copy link

ufukty commented Nov 17, 2021

echo command appends a newline character at the end of string. Try with echo -n to disable that behaviour.

@ufukty
Copy link

ufukty commented Nov 17, 2021

Bash:

$ echo -n "123456789012345678901234567890" | argon2 "salzwasser" -i -t 3 -m 12 -p 1

Website:

Parallelism factor:1
Memory cost: 4096
Iterations: 3
Hash length: 32

Output is same:

$argon2i$v=19$m=4096,t=3,p=1$c2Fsendhc3Nlcg$VFoCUnJ9BRisFg0SLR2tBPoijHBvkNYL9WGlwPWstS0

@guil-g
Copy link
Author

guil-g commented Nov 17, 2021

Thank you very much. This solved the issue.

@guil-g guil-g closed this as completed Nov 17, 2021
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

No branches or pull requests

2 participants