public override string GetStength(string password, int count)
        {
            if (ContainsNumbers(password))
            {
                count += 10;
            }

            return(_baseStrength?.GetStength(password, count) ?? GetPasswordStrength(password, count));
        }
예제 #2
0
        public override string GetStength(string password, int count)
        {
            if (ContainsUpperCaseChars(password))
            {
                count += 26;
            }

            return(_baseStrength?.GetStength(password, count) ?? GetPasswordStrength(password, count));
        }
        public override string GetStength(string password, int count)
        {
            if (ContainsPunctuationStrength(password))
            {
                count += 31;
            }

            return(_baseStrength?.GetStength(password, count) ?? GetPasswordStrength(password, count));
        }