mheyman / Isopoh.Cryptography.Argon2

Fully managed .Net Core implementation of Argon2
Other
196 stars 9 forks source link

Hash without salt is corrupt #52

Open Joy-less opened 5 months ago

Joy-less commented 5 months ago

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 commented 1 month ago

Yep, I get this too