When using the the basic Argon2.Hash(string Password) method, I can successfully hash and verify my passwords. But when I introduce the string secret parameter, my passwords no long are verified. Example:
// WORKS
var plaintextPassword = "MyPassword";
var hashedPassword= Argon2.Hash(plaintextPassword);
var check = Argon2.Verify(hashedPassword, plaintextPassword);
// check == True
// DOES NOT WORK
var plaintextPassword = "MyPassword";
var hashedPassword= Argon2.Hash(plaintextPassword, "mysecret");
var check = Argon2.Verify(hashedPassword, plaintextPassword);
// check == False
When using the the basic
Argon2.Hash(string Password)
method, I can successfully hash and verify my passwords. But when I introduce thestring secret
parameter, my passwords no long are verified. Example: