verify signature of JWT Token c#
问题 I have some problems to verify the signature of a JWT token I get. The token is signed with HS256. The code where I try to create a signature to proof the received one is: JwtSecurityToken token = tokenHandler.ReadJwtToken(tokenString); byte[] keyBytes = Encoding.UTF8.GetBytes("secret"); HMACSHA256 hmac = new HMACSHA256(keyBytes); byte[] signatureBytes = hmac.ComputeHash(Encoding.UTF8.GetBytes(token.RawHeader + "." + token.RawPayload)); string signature = Convert.ToBase64String(signatureBytes