Omnibus commited on
Commit
57f33cf
·
1 Parent(s): 29eca9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -145,11 +145,8 @@ def decode_qr(im,passw):
145
  with open(f'{im}', "rb") as image_file:
146
  bytes_i = base64.b64encode(image_file.read())
147
  decode_qr = stegan.decode(im)
148
-
149
-
150
-
151
-
152
-
153
  print(f'decoded QR::{decode_qr}')
154
  key = create_key(passw)
155
  fernet = Fernet(key)
@@ -192,6 +189,7 @@ def decode_qr(im,passw):
192
  fh.write(base64.decodebytes(bytes(mes2, 'utf-8')))
193
  fh.close
194
  dec_im = "finished_im.png"
 
195
  return(dec_im,mes_dec)
196
 
197
 
 
145
  with open(f'{im}', "rb") as image_file:
146
  bytes_i = base64.b64encode(image_file.read())
147
  decode_qr = stegan.decode(im)
148
+ dec_im = decrypt(passw, enc_in=decode_qr)
149
+ '''
 
 
 
150
  print(f'decoded QR::{decode_qr}')
151
  key = create_key(passw)
152
  fernet = Fernet(key)
 
189
  fh.write(base64.decodebytes(bytes(mes2, 'utf-8')))
190
  fh.close
191
  dec_im = "finished_im.png"
192
+ '''
193
  return(dec_im,mes_dec)
194
 
195