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