public override bool VerifyPassword(string password) { var passwordBytes = System.Text.Encoding.ASCII.GetBytes(password.Substring(0, Math.Min(password.Length, 15))); var verifier = XorManaged.CreatePasswordVerifier_Method1(passwordBytes); return(verifier == HashValue); }
public override byte[] GenerateSecretKey(string password) { var passwordBytes = System.Text.Encoding.ASCII.GetBytes(password.Substring(0, Math.Min(password.Length, 15))); return(XorManaged.CreateXorArray_Method1(passwordBytes)); }