ruby-jwe icon indicating copy to clipboard operation
ruby-jwe copied to clipboard

JSON Web Encryption for Ruby

Results 7 ruby-jwe issues
Sort by recently updated
recently updated
newest added

Hi and thanks a lot How to use this gem as a container to a JWT (e.g created with ruby-jwt)? Should the JWT output of the ruby-jwt be the payload...

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)...

I'm trying to use the encrypt method. When I call JWE.encrypt it throws the error ```bash (undefined method `public_encrypt' for #) ``` ```ruby require 'json' require 'open-uri' require 'jwe' URL...

The original decrypt method only returns the decrypted payload and makes it difficult to get to the header information without going through a bunch of hoops. Returning the payload and...

This breaks apart #7, as requested. This is part 2, which allows a block to be given to dynamically determine what key to use during decryption. The block is given...

With the updated openssl library within ruby 2.4 you get this error: key must be 16 bytes (ArgumentError) I am ready with a quick rspec test case but it fails...

Default in docs says ``` default alg and enc methods (RSA-OAEP and A128CBC-HS256) ``` https://github.com/jwt/ruby-jwe/blob/master/README.md?plain=1#L16 Default in code is ``` def encrypt(payload, key, alg: 'RSA-OAEP', enc: 'A128GCM', **more_headers) ``` https://github.com/jwt/ruby-jwe/blob/master/lib/jwe.rb#L24