using System.Collections.Generic;
using System.Threading.Tasks;
public static void Main()
var pwds = GenerateLowSecurityPasswords(4, 10);
public static List<String> GenerateLowSecurityPasswords(int numOfChars, int numOfPasswords)
Random rnd = new Random(DateTime.Now.Millisecond);
List<String> passwords = new List<String>();
for (int i = 0; i < numOfPasswords; i++)
passwords.Add(GenerateLowSecurityPassword(numOfChars, rnd));
private static String GenerateLowSecurityPassword(int numOfChars, Random rnd)
char[] passwd = new char[numOfChars];
string allowedChars = "abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789";
for (int i = 0; i < numOfChars; i++)
passwd[i] = allowedChars[rnd.Next(0, allowedChars.Length)];
return new String(passwd);