Skip to content
This repository was archived by the owner on Aug 15, 2023. It is now read-only.

Commit 925416d

Browse files
author
Geert de Graaf
committed
Fixed crash on missing input
1 parent 614206a commit 925416d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

RC4 File decrypt/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ class Program
1414
{
1515
static void Main(string[] args)
1616
{
17+
if(args.Length != 3)
18+
{
19+
Console.WriteLine("Not all arguments are met use: key file-in file-out");
20+
Environment.Exit(0);
21+
}
1722

1823
// To decrypt some files in RC4
1924

0 commit comments

Comments
 (0)