Help with Integration

  
Dears,

I'd like to seek your help adding the below C# code to a xif extension as i am still newbie in programming and setup of integration studio; could anybody help generating it for me. It's a HMAC function that has two string inputs and return Hex output:

public static String hmacSHA256(String message, string privateKey)
using (var hash = new HMACSHA256(Encoding.UTF8.GetBytes(privateKey)))
{
var correctHash = string.Join("",hash.ComputeHash(Encoding.UTF8.GetBytes(message)).Select(b => b.ToString("x2")));
return publicKey + ":" + correctHash;
}

 


Hi,

Check out this video on building custom code:
http://www.outsystems.com/videos/integration/extend-platform-with-your-own-code/