Spaces:
Sleeping
Sleeping
Update get_gmail_data.py
Browse files- get_gmail_data.py +1 -1
get_gmail_data.py
CHANGED
@@ -200,7 +200,7 @@ class GmailDataExtractor:
|
|
200 |
|
201 |
# Pad the message_id to be a multiple of 16 bytes (AES block size)
|
202 |
# This is necessary for AES encryption
|
203 |
-
message_id_padded = message_id_bytes.
|
204 |
|
205 |
# Encrypt the padded message_id
|
206 |
ciphertext = encryptor.update(message_id_padded) + encryptor.finalize()
|
|
|
200 |
|
201 |
# Pad the message_id to be a multiple of 16 bytes (AES block size)
|
202 |
# This is necessary for AES encryption
|
203 |
+
message_id_padded = message_id_bytes.ljust(32, b'\0')
|
204 |
|
205 |
# Encrypt the padded message_id
|
206 |
ciphertext = encryptor.update(message_id_padded) + encryptor.finalize()
|