public Secret CreateSecret(string password) { if (password is null) { throw new ArgumentNullException(nameof(password)); } return(SecretUtils.CreateSecret(password, fHashAlgorithm, _SaltSize, _IterationCount)); }
public bool ComparePasswords(string password, Secret secret) { if (secret is null) { throw new ArgumentNullException(nameof(secret)); } return(SecretUtils.CompareSecret(password, secret, fHashAlgorithm, _IterationCount)); }