using System.Security.Cryptography;
public static void Main()
byte[] saltBytes = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
byte[] passwordBytes = Encoding.UTF8.GetBytes("test pass 123");
for (int i = 0; i < 5; i++) {
var key = new Rfc2898DeriveBytes(passwordBytes, saltBytes, 1000);
Console.WriteLine(string.Join(" ", key.GetBytes(256 / 8)));