Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -84,6 +84,7 @@ def generate_keys1():
|
|
| 84 |
return public_key,private_key
|
| 85 |
|
| 86 |
def encrypt_text1(data,in2):
|
|
|
|
| 87 |
#data = "I met aliens in UFO. Here is the map.".encode("utf-8")
|
| 88 |
file_out = open("encrypted_data.bin", "wb")
|
| 89 |
|
|
|
|
| 84 |
return public_key,private_key
|
| 85 |
|
| 86 |
def encrypt_text1(data,in2):
|
| 87 |
+
data = data.encode("utf-8")
|
| 88 |
#data = "I met aliens in UFO. Here is the map.".encode("utf-8")
|
| 89 |
file_out = open("encrypted_data.bin", "wb")
|
| 90 |
|