using var hmac = new HMACSHA256(Encoding.UTF8.GetBytes(apiKey));var hash = hmac.ComputeHash(Encoding.UTF8.GetBytes(userId));result.NotificationCenterHash = Convert.ToHexString(hash);
using var hmac = new HMACSHA256(Encoding.UTF8.GetBytes(apiKey));var hash = hmac.ComputeHash(Encoding.UTF8.GetBytes(userId));result.NotificationCenterHash = Convert.ToHexString(hash);
I'm wondering if I'm just doing it wrong or if there's something else perhaps.. I triple checked the values I'm using and they should be correct