ruby-jwe
ruby-jwe copied to clipboard
decrypt using JWK
I think this is a feature request, as I haven't really seen it in the docs.
I'd like to able to pass an "enc" JWK (or an array of them) instead of the decryption key.
The "jwt" gem knows how to build and load a JWK key, so maybe this is a feature that makes more sense as an extension of "jwt", as it could be used in the "JWT.verify" method.
I'd really like to have this, although we should probably extract JWK related code to a third gem...