using System.Security.Cryptography;
static string GenerateSha256(string inputString)
var hash = new System.Text.StringBuilder();
using (SHA256 sha256 = SHA256.Create())
byte[] hashBytes = sha256.ComputeHash(Encoding.UTF8.GetBytes(inputString));
foreach (byte theByte in hashBytes)
hash.Append(theByte.ToString("x2"));
public static void Main()
"correlation_identifier": "Payee Validation",
"creditor_account": "23124812341",
"creditor_name": "NARUMATT",
"uetr": "3c9e595f-07d8-4f56-ae80-8edbb7683d59",
Console.WriteLine(GenerateSha256(json));