From 5c44f860f1182f8cbf440dc7dc6e10711bfb2bc6 Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Sat, 17 Mar 2018 19:33:55 +0100 Subject: Prettier output --- DistributedPasswordCracker.Client/Program.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'DistributedPasswordCracker.Client/Program.cs') diff --git a/DistributedPasswordCracker.Client/Program.cs b/DistributedPasswordCracker.Client/Program.cs index 197f62a..9248f53 100644 --- a/DistributedPasswordCracker.Client/Program.cs +++ b/DistributedPasswordCracker.Client/Program.cs @@ -36,7 +36,7 @@ namespace DistributedPasswordCracker.Client string[,] splitDictionary = SplitDictionary(dictionary); if (splitDictionary[0,0] != "") Console.Write("OK\n"); - Console.WriteLine("Cracking..."); + Console.Write("Cracking... \n\n"); List> tasks = new List>(); for(int i = 0; i < NumberOfTasks; i++) { @@ -54,7 +54,7 @@ namespace DistributedPasswordCracker.Client for (int i = 0; i < result.Length; i++) output += result[i]; - Console.Write("Sending results to server..."); + Console.Write("\nSending results to server..."); sw.WriteLine(output); Console.Write("OK\n"); } @@ -62,10 +62,11 @@ namespace DistributedPasswordCracker.Client { Console.Write("FAILED\n"); Console.Write("Sending notification to server..."); - sw.WriteLine("No passwords cracked!"); + sw.WriteLine(); Console.Write("OK\n"); } - Console.WriteLine("Press any key to exit..."); + + Console.Write("\nPress any key to exit..."); Console.ReadKey(); } @@ -119,7 +120,7 @@ namespace DistributedPasswordCracker.Client return splitDictionary; } - private static async Task DecryptPassword(string[] dictionary) + private static string DecryptPassword(string[] dictionary) { Cracking cracker = new Cracking(); var result = cracker.RunCracking(dictionary); -- cgit v1.2.3