public static void Main()
string test = HMACSHA256("3081000BRLtest_customer@p4f.comcei0C7wW5d6D", "7839793");
public static string HMACSHA256(string stringToBeEncripted, string encriptionKey)
byte[] secrectKey = System.Text.Encoding.UTF8.GetBytes(encriptionKey);
using (System.Security.Cryptography.HMACSHA256 hmac = new System.Security.Cryptography.HMACSHA256(secrectKey))
byte[] bytes_hmac_in = System.Text.Encoding.UTF8.GetBytes(stringToBeEncripted);
byte[] bytes_hamc_out = hmac.ComputeHash(bytes_hmac_in);
string str_hamc_out = BitConverter.ToString(bytes_hamc_out);
str_hamc_out = str_hamc_out.Replace("-", "");