public string GenerateSignature(string unsignedToken, byte[] signingKey)
{
//HMACSHA256 is platform dependent, hence the need for WP/Droid/Touch plugins
using (var hmac = new HMACSHA256(signingKey))
{
var signatureBytes = hmac.ComputeHash(Encoding.UTF8.GetBytes(unsignedToken));
return Convert.ToBase64String(signatureBytes);
}
}