Skip to content

Commit

Permalink
Added very basic commenting. Screw it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hate9 committed Sep 8, 2020
1 parent 3f6a7cb commit fef554a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Program
{
static void Main(string[] args)
{
//setup
int wordCount = 0,
numberCount = 0,
specialCount = 0;
Expand Down Expand Up @@ -49,12 +50,14 @@ static void Main(string[] args)
camel = args.Contains("camel"),
leetcaps = args.Contains("leetcaps");

//load wordlists
string[] nouns = File.ReadAllLines("nouns.txt"),
adjectives = File.ReadAllLines("adjectives.txt"),
both = new string[nouns.Length + adjectives.Length];
adjectives.CopyTo(both, 0);
nouns.CopyTo(both, adjectives.Length);

//more setup
Random rng = new Random();
Dictionary<char, char> leetChars = new Dictionary<char, char>()
{
Expand All @@ -80,6 +83,7 @@ static void Main(string[] args)
};
char[] specialChars = "!,.?\'\"`~@#$%^&*-_=+\\/|()[]{}<>".ToCharArray();

//start actually generating passwords
string password = both.RandomItem();
wordCount--;
if (caps)
Expand Down

0 comments on commit fef554a

Please sign in to comment.