BrockAllen.MembershipReboot.DefaultCrypto.VerifyHashedPassword C# (CSharp) Метод

VerifyHashedPassword() публичный Метод

public VerifyHashedPassword ( string hashedPassword, string password ) : bool
hashedPassword string
password string
Результат bool
        public bool VerifyHashedPassword(string hashedPassword, string password)
        {
            if (hashedPassword.Contains(PasswordHashingIterationCountSeparator))
            {
                var parts = hashedPassword.Split(PasswordHashingIterationCountSeparator);
                if (parts.Length != 2) return false;

                int count = DecodeIterations(parts[0]);
                if (count <= 0) return false;

                hashedPassword = parts[1];

                return Crypto.VerifyHashedPassword(hashedPassword, password, count);
            }
            else
            {
                return Crypto.VerifyHashedPassword(hashedPassword, password);
            }
        }