Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -123,6 +123,8 @@ def decrypt(passw,enc_in=None):
|
|
| 123 |
dec_json = fernet.decrypt(json_bytes).decode()
|
| 124 |
if not "+bbb+" in enc_in:
|
| 125 |
if "+ccc+" in enc_in:
|
|
|
|
|
|
|
| 126 |
mes4=enc_in.split("+ccc+",1)[0]
|
| 127 |
mes4=mes4.strip("b'").strip("'")
|
| 128 |
json_bytes = bytes(mes4,'utf-8')
|
|
@@ -144,16 +146,15 @@ def decrypt(passw,enc_in=None):
|
|
| 144 |
fh.close
|
| 145 |
dec_im = "finished_im.png"
|
| 146 |
if "+ccc+" in enc_in:
|
| 147 |
-
mes13=enc_in.split("+
|
| 148 |
-
mes3=mes13.split("+
|
| 149 |
mes3=mes3.strip("b'").strip("'")
|
| 150 |
json_bytes = bytes(mes3,'utf-8')
|
| 151 |
print(f'im_bytes::{json_bytes}')
|
| 152 |
dec_json = fernet.decrypt(json_bytes).decode()
|
| 153 |
if not "+bbb+" in enc_in:
|
| 154 |
if "+ccc+" in enc_in:
|
| 155 |
-
|
| 156 |
-
mes3=mes13.split("+bbb+",1)[0]
|
| 157 |
mes3=mes3.strip("b'").strip("'")
|
| 158 |
json_bytes = bytes(mes3,'utf-8')
|
| 159 |
print(f'im_bytes::{json_bytes}')
|
|
|
|
| 123 |
dec_json = fernet.decrypt(json_bytes).decode()
|
| 124 |
if not "+bbb+" in enc_in:
|
| 125 |
if "+ccc+" in enc_in:
|
| 126 |
+
mes13=enc_in.split("+aaa+",1)[1]
|
| 127 |
+
|
| 128 |
mes4=enc_in.split("+ccc+",1)[0]
|
| 129 |
mes4=mes4.strip("b'").strip("'")
|
| 130 |
json_bytes = bytes(mes4,'utf-8')
|
|
|
|
| 146 |
fh.close
|
| 147 |
dec_im = "finished_im.png"
|
| 148 |
if "+ccc+" in enc_in:
|
| 149 |
+
mes13=enc_in.split("+bbb+",1)[1]
|
| 150 |
+
mes3=mes13.split("+ccc+",1)[0]
|
| 151 |
mes3=mes3.strip("b'").strip("'")
|
| 152 |
json_bytes = bytes(mes3,'utf-8')
|
| 153 |
print(f'im_bytes::{json_bytes}')
|
| 154 |
dec_json = fernet.decrypt(json_bytes).decode()
|
| 155 |
if not "+bbb+" in enc_in:
|
| 156 |
if "+ccc+" in enc_in:
|
| 157 |
+
mes3=mes13.split("+ccc+",1)[0]
|
|
|
|
| 158 |
mes3=mes3.strip("b'").strip("'")
|
| 159 |
json_bytes = bytes(mes3,'utf-8')
|
| 160 |
print(f'im_bytes::{json_bytes}')
|