A fluent password hashing library using argon2
.NET Standard 2.0
var generator = FluentHashing.Create()
.WithSaltLength(16)
.WithDegreeOfParallelism(1)
.WithIterations(4)
.WithMemorySize(16)
.WithHashLength(16)
.WithAlgorithm(PasswordHashAlgorithm.ARGON2ID)
.Generator();
var password = "password";
// example hash for password
// $argon2id$m=16,t=4,p=1$aM8qmYw1xfzvHEYTIg0w1g==$mQqnrY9rQyMC7SJq039z/A==
var hash = await generator.Generate(password);
var generator = FluentHashing.Create().Generator();
var isMatch = await generator.VerifyPassword(hash, password);