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

Hash without salt is corrupt #52

Open
Joy-less opened this issue Apr 17, 2024 · 1 comment
Open

Hash without salt is corrupt #52

Joy-less opened this issue Apr 17, 2024 · 1 comment

Comments

@Joy-less
Copy link

Seems kind of basic, but the hash is corrupt if a salt isn't supplied.

Argon2.Hash(new Argon2Config {
    Password = Encoding.UTF8.GetBytes("test")
})
// $argon2id$v=19$m=65536,t=3,p=4
Argon2.Hash(new Argon2Config {
    Password = Encoding.UTF8.GetBytes("test"),
    Salt = [0, 0, 0, 0, 0, 0, 0, 0]
})
// $argon2id$v=19$m=65536,t=3,p=4$AAAAAAAAAAA$997Y916TCd1Fc7bOyGM7ZVs9tnPdyxDLqrm9sYAp0P8
@corydambach
Copy link

Yep, I get this too

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