Omnibus commited on
Commit
c3b92ce
·
1 Parent(s): 970004c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -22,15 +22,16 @@ def encrypt(mes=None,img=None,document=None):
22
  key = key.encode()
23
  h = hashlib.new('sha256')
24
  h.update(key)
25
- h.hexdigest()
26
- h.encode()
27
  print (key)
28
  print (h)
29
- key = h
30
 
31
 
32
  password=key
33
- salt = os.urandom(16)
 
34
  kdf = PBKDF2HMAC(
35
  algorithm=hashes.SHA256(),
36
  length=32,
 
22
  key = key.encode()
23
  h = hashlib.new('sha256')
24
  h.update(key)
25
+ key = h.hexdigest()
26
+ key = key.encode()
27
  print (key)
28
  print (h)
29
+ #key = h
30
 
31
 
32
  password=key
33
+ #salt = os.urandom(16)
34
+ salt = key
35
  kdf = PBKDF2HMAC(
36
  algorithm=hashes.SHA256(),
37
  length=32,