Esempio n. 1
0
        string getSsoHash(string payload)
        {
            var hash = new System.Security.Cryptography.HMACSHA256(Encoding.UTF8.GetBytes(secret)).ComputeHash(Encoding.UTF8.GetBytes(payload));

            return(string.Join("", hash.Select(b => String.Format("{0:x2}", b))));
        }