From 925416dc104905df8a62dd91bb0e2f8c1862811f Mon Sep 17 00:00:00 2001 From: Geert de Graaf Date: Fri, 13 Jan 2017 14:12:12 +0100 Subject: [PATCH] Fixed crash on missing input --- RC4 File decrypt/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RC4 File decrypt/Program.cs b/RC4 File decrypt/Program.cs index 895658d..e0ac399 100644 --- a/RC4 File decrypt/Program.cs +++ b/RC4 File decrypt/Program.cs @@ -14,6 +14,11 @@ class Program { static void Main(string[] args) { + if(args.Length != 3) + { + Console.WriteLine("Not all arguments are met use: key file-in file-out"); + Environment.Exit(0); + } // To decrypt some files in RC4