mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
8 lines
179 B
Python
8 lines
179 B
Python
import hashlib
|
|
from flask import current_app
|
|
|
|
|
|
def encrypt(value):
|
|
key = current_app.config['SECRET_KEY']
|
|
return hashlib.sha256((key + value).encode('UTF-8')).hexdigest()
|