Omkar008 commited on
Commit
3814d06
1 Parent(s): 95a171e

Update get_gmail_data.py

Browse files
Files changed (1) hide show
  1. 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.encode().rjust(32, b'\0')
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()