Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,7 +79,7 @@ def decrypt(passw,enc_in=None):
|
|
| 79 |
fernet = Fernet(key)
|
| 80 |
dec_im = None
|
| 81 |
mes_dec= None
|
| 82 |
-
|
| 83 |
print (f'enc_in :::: {enc_in}')
|
| 84 |
|
| 85 |
if "+aaa+" in enc_in:
|
|
@@ -143,7 +143,7 @@ def decode_doc(passw,doc=None):
|
|
| 143 |
def decode_qr(im,passw):
|
| 144 |
decode_qr = stegan.decode(im)
|
| 145 |
print(f'decoded QR::{decode_qr}')
|
| 146 |
-
dec_im,mes_dec=decrypt(passw
|
| 147 |
print (f'dec_im::{dec_im}')
|
| 148 |
print (f'mes_dec::{mes_dec}')
|
| 149 |
|
|
|
|
| 79 |
fernet = Fernet(key)
|
| 80 |
dec_im = None
|
| 81 |
mes_dec= None
|
| 82 |
+
enc_in=enc_in.strip('"')
|
| 83 |
print (f'enc_in :::: {enc_in}')
|
| 84 |
|
| 85 |
if "+aaa+" in enc_in:
|
|
|
|
| 143 |
def decode_qr(im,passw):
|
| 144 |
decode_qr = stegan.decode(im)
|
| 145 |
print(f'decoded QR::{decode_qr}')
|
| 146 |
+
dec_im,mes_dec=decrypt(passw,enc_in=decode_qr)
|
| 147 |
print (f'dec_im::{dec_im}')
|
| 148 |
print (f'mes_dec::{mes_dec}')
|
| 149 |
|