Skip to content

Commit ee47135

Browse files
- Stripping out hex added from decoding
1 parent c055ed0 commit ee47135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client_encryption/jwe_encryption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def decrypt_payload(payload, config, _params=None):
9393
aes.update(aad)
9494

9595
decrypted = aes.decrypt(cipher_text)
96-
decoded_payload = decrypted.decode().rstrip('\x03')
96+
decoded_payload = decrypted.decode().rstrip('\x03').strip()
9797

9898
if isinstance(json.loads(decoded_payload), list):
9999
json_payload = json.loads(decoded_payload)

0 commit comments

Comments
 (0)