Closed orangeagain closed 4 years ago
@orangeagain Can your share your solution? Is it an issue with documentation?
@orangeagain Can your share your solution? Is it an issue with documentation?
I Plan to encrypt whole token like this: RAW: {"alg": "HS256","typ": "JWT"}.{ "sub": "1234567890", "name": "John Doe", "iat": 1516239022}
after encrypt: {"alg": "HS256","typ": "JWT"}.ENCRYPTPAYLOAD
final,after signature: {"alg": "HS256","typ": "JWT"}.ENCRYPTPAYLOAD.SIGNATURE
I find different implement in your code. but you didn't throw decryption payload,you just valid it. can you throw payload json in decryption process?
JWT struct: header.PAYLOAD.signature
Throw payload json because I need read custom jsonobj custom json don't need to deserlized,just throw string or byte[]. and we can deserlized it use other library like utf8json.
You are right. If you need to encrypt a JWS, this is basicaly a JWE.
My current resolvent is decryption whole JWT.so i closet this issues