python-jose icon indicating copy to clipboard operation
python-jose copied to clipboard

JWE for multiple recipients

Open dgpetrie opened this issue 2 years ago • 1 comments

jose.jwe.encrypt outputs the compact form of JWE. I understand how to reformat this into the Complete JWE JSON Serialization form. What I don't see is a way to use jose.jwe.encrypt for multiple recipients with a shared ciphertext, iv and tag and a different encrypted_key for each recipient for the Complete JWE JSON Serialization form. jose.jwe.encrypt does not seem to accept an array of keys and the output compact form JWE does not support multiple encrypted_keys.

Can this be done with jose.jwe?

dgpetrie avatar Jun 23 '22 17:06 dgpetrie

Can this be done with jose.jwe? I'd say no - unfortunately. I was looking for that option to create a JWE for multiple recipients too...

securedimensions avatar Jul 19 '22 18:07 securedimensions