public static string get_Encoding(string salt, string input)
{
string output = "";
var salt_data = Encoding.UTF8.GetBytes(salt);
var input_data = Encoding.UTF8.GetBytes(input);
using (var sha256 = SHA256.Create())
{
byte[] shaBytessalt = new byte[salt_data.Length];
byte[] shaBytesinput = new byte[input_data.Length];
salt_data.CopyTo(shaBytessalt, 0);
input_data.CopyTo(shaBytesinput, 0);
sha256.TransformBlock(shaBytesslat, 0, shaBytesslat.Length, shaBytessalt, 0);
byte[] hash = sha256.ComputeHash(shaBytesinput);
output= Convert.ToBase64String(hash);
}
return output;
}