import os BASEDIR = os.path.abspath(os.path.dirname(__file__)) def full_path(local_file): return os.path.join(BASEDIR, local_file) CRYPT_CONFIG = { "kwargs": { "keys": { "key_defs": [ {"type": "OCT", "use": ["enc"], "kid": "password"}, {"type": "OCT", "use": ["enc"], "kid": "salt"}, ] }, "iterations": 1, } } SESSION_PARAMS = {"encrypter": CRYPT_CONFIG}