Esempio n. 1
0
 static void Main(string[] args)
 {
     if (args.Length != 1)
     {
         Console.WriteLine(incorrectNumber);
         Console.WriteLine(example);
         return;
     }
     PasswordStrengthLibrary.PasswordStrength passwordStrength = new PasswordStrengthLibrary.PasswordStrength();
     Console.WriteLine(passwordStrength.CalcSafety(args[0]));
 }
Esempio n. 2
0
 static void Main(string[] args)
 {
     if (args.Length != 1)
     {
         Console.WriteLine("Incorrect number of arguments!");
         Console.WriteLine("Usage PasswordStrength.exe <password>");
         return;
     }
     PasswordStrengthLibrary.PasswordStrength passwordStrength = new PasswordStrengthLibrary.PasswordStrength();
     Console.WriteLine(passwordStrength.CalcSafety(args[0]));
 }