google / jwt_verify_lib

Provide c++ library to verify JWT tokens
Apache License 2.0
41 stars 43 forks source link

JWE Support #100

Open ksivask opened 10 months ago

ksivask commented 10 months ago

As part of envoyproxy / istio changes, I am adding JWE support to this library and would like to upstream the changes. I am volunteering to get this feature added. Please advise if this feature request is acceptable.

JWE Asymmetric Algorithms (alg)

JWE Symmetric Encryptions (enc)

References

BASE64URL(UTF8(JWE Protected Header)) + '.' +
BASE64URL(JWE Encrypted CEKey) + '.' +
BASE64URL(JWE Initialization Vector) + '.' +
BASE64URL(JWE Ciphertext) + '.' +
BASE64URL(JWE Authentication Tag)
pascal-hofmann commented 6 months ago

@ksivask I'm not sure which flavor you want to implement (JWE or JWS in JWE), but you might want to check out https://www.youtube.com/watch?v=mJ6BQ5eFkG4&t=1258s