Skip to content

Commit

Permalink
defined function derive_key()
Browse files Browse the repository at this point in the history
  • Loading branch information
Equat-ion committed Jan 21, 2025
1 parent 4111875 commit 52e62b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/core_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
import hashlib
import base64

def derive_key(master_password):
key = hashlib.sha256(master_password)
key = base64.urlsafe_b64decode(key)

return key

encryption_key = b"86sn3NYCM_CHc7Kq5qe2qjFCjcb1B6tf9KeNlOUMhm0=" # TEMPORARY KEY

Expand Down

0 comments on commit 52e62b1

Please sign in to comment.