using System.Security.Cryptography;
public static void Main()
const int threadCount = 2;
var b = new Barrier(threadCount);
var sha1 = SHA1.Create();
for (int i = 0; i < 10000; i++)
var pwd = Guid.NewGuid().ToString();
var bytes = Encoding.UTF8.GetBytes(pwd);
var threads = Enumerable.Range(0, threadCount)
.Select(_ => new ThreadStart(start))
.Select(x => new Thread(x))
foreach (var t in threads) t.Start();
foreach (var t in threads) t.Join();