using System.Security.Cryptography;
public static void Main()
while (hashFound == false)
string hashTarget = seed + index.ToString();
string hash = CreateMD5Hash(hashTarget);
if (hash.StartsWith("00000"))
Console.WriteLine(index);
public static string CreateMD5Hash(string input)
MD5 md5 = System.Security.Cryptography.MD5.Create();
byte[] inputBytes = System.Text.Encoding.ASCII.GetBytes(input);
byte[] hashBytes = md5.ComputeHash(inputBytes);
StringBuilder sb = new StringBuilder();
for (int i = 0; i < hashBytes.Length; i++)
sb.Append(hashBytes[i].ToString("X2"));