Omnibus commited on
Commit
dbc04f5
·
1 Parent(s): 9bd48e4

Update app_og.py

Browse files
Files changed (1) hide show
  1. app_og.py +1 -1
app_og.py CHANGED
@@ -97,7 +97,7 @@ def encrypt_text(data,pub_im,priv_im,address):
97
 
98
  # Encrypt the data with the AES session key
99
  cipher_aes = AES.new(session_key, AES.MODE_EAX)
100
- ciphertext, tag = cipher_aes.encrypt_and_digest(data)
101
 
102
  file_out = open("encrypted_data.bin", "wb")
103
 
 
97
 
98
  # Encrypt the data with the AES session key
99
  cipher_aes = AES.new(session_key, AES.MODE_EAX)
100
+ ciphertext, tag = cipher_aes.encrypt_and_digest(str(data))
101
 
102
  file_out = open("encrypted_data.bin", "wb")
103