This commit is contained in:
Yax 2018-09-15 13:38:03 +02:00
parent 637b00261a
commit 3c4a25e5ad
17 changed files with 197 additions and 272 deletions

View file

@ -6,7 +6,7 @@ from conf import config
def salt(value):
string = '%s%s' % (value, config.security['salt'])
string = "%s%s" % (value, config.get(config.SECURITY_SALT))
dk = hashlib.sha256(string.encode())
return dk.hexdigest()