We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d9f438f + 892ee62 commit 5f3878cCopy full SHA for 5f3878c
client_encryption/jwe_encryption.py
@@ -93,7 +93,7 @@ def decrypt_payload(payload, config, _params=None):
93
aes.update(aad)
94
95
decrypted = aes.decrypt(cipher_text)
96
- decoded_payload = decrypted.decode().rstrip('\x03').strip()
+ decoded_payload = ''.join(c for c in decrypted.decode() if c.isprintable())
97
98
if isinstance(json.loads(decoded_payload), list):
99
json_payload = json.loads(decoded_payload)
0 commit comments