Changed structure of referencing data
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
from ..data import data
|
||||
from flask import current_app as app
|
||||
|
||||
from cryptography.fernet import Fernet
|
||||
from pathlib import Path
|
||||
|
||||
def load_key():
|
||||
data = Path(app.config.get('DATA'))
|
||||
with open(f'./{data}/.encryption.key', 'rb') as keyfile: return keyfile.read()
|
||||
|
||||
def decrypt(input:str):
|
||||
|
Reference in New Issue
Block a user