python-jose
python-jose copied to clipboard
JWE for multiple recipients
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?
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...