Omnibus commited on
Commit
df2fb91
·
1 Parent(s): e741a24

Update app_og.py

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