Exemplo n.º 1
0
        public string Find(string secretKey, int passwordLength)
        {
            var password = new Password(passwordLength);

            while (!password.IsComplete())
            {
                var nextPasswordCharacter = FindNextPasswordCharacter(secretKey);

                password = password.AddCharacter(nextPasswordCharacter);
            }

            return(password.ToString());
        }