mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 02:42:26 -05:00
Still need to figure out how to override the load_user method, currently it is not working.
8 lines
184 B
Python
8 lines
184 B
Python
import hashlib
|
|
from flask import current_app
|
|
|
|
|
|
def encrypt(value):
|
|
key = current_app.config['PASS_SECRET_KEY']
|
|
return hashlib.sha256((key + value).encode('UTF-8')).hexdigest()
|