Omnibus commited on
Commit
ae81b56
·
1 Parent(s): 91e759e

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(bytes(data,"utf-8"))
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(bytes(str(data),"utf-8"))
101
 
102
  file_out = open("encrypted_data.bin", "wb")
103