Exemple #1
0
        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);
        }
Exemple #2
0
        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));
        }