grandmair40
grandmair40
Hi Blag, I am trying to execute what you describe above: >>> encrypted_text = jwe.encrypt("my string", "A" * 32, encryption=constants.Algorithms.A128CBC_HS256, kid="AAA") But it fails with jose.exceptions.JWKError: Unable to find an...
the following also fails with the same error: encrypted_text = jwe.encrypt("my string", "A" * 32) I am using the latest version: Name: python-jose Version: 3.3.0 Summary: JOSE implementation in Python...
Sorry, I forgot to mention that for the example jwe.encrypt('Hello, World!', 'asecret128bitkey', algorithm='dir', encryption='A128GCM') I passed 16 bytes instead of asecret128bitkey so a key with the correct length
Thanks for the update. I found the problem. The missing cryptography lib dependency. pip install cryptography fixes the problem
I did not look at it but probably your requirements.txt file does not have it