using System.Security.Cryptography;
public static void Main()
byte[] salt =Encoding.UTF8.GetBytes(s);
byte[] key = new Rfc2898DeriveBytes(Encoding.UTF8.GetBytes(pwd), salt , 4096).GetBytes(32);
string hex = BitConverter.ToString(key).Replace("-", string.Empty);
Console.WriteLine(hex.ToLower());