We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc6e94b commit ccc983cCopy full SHA for ccc983c
encryption_jwt/encryptor.py
@@ -2,6 +2,7 @@
2
import base64
3
import logging
4
import os
5
+import typing
6
7
from botocore.exceptions import ClientError
8
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
@@ -27,7 +28,7 @@ def boto_session(self):
27
28
29
return self._boto_session
30
- async def encrypt(self, data: bytes) -> tuple[bytes, bytes]:
31
+ async def encrypt(self, data: bytes) -> typing.Tuple[bytes, bytes]:
32
"""Encrypt data using a key from KMS."""
33
# The keys are rotated automatically by KMS, so fetch a new key to encrypt the data.
34
data_key_encrypted, data_key_plaintext = await self.__create_data_key(
0 commit comments