Spaces:
Runtime error
Runtime error
Update app_og.py
Browse files
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 |
|