Configuration moved to JSON and validated by JSON Schema
This commit is contained in:
parent
47bda266a4
commit
8ebed3cda6
21 changed files with 300 additions and 103 deletions
|
|
@ -2,11 +2,11 @@
|
|||
# -*- coding: UTF-8 -*-
|
||||
|
||||
import hashlib
|
||||
import config
|
||||
from conf import config
|
||||
|
||||
|
||||
def salt(value):
|
||||
string = '%s%s' % (value, config.SALT)
|
||||
string = '%s%s' % (value, config.security['salt'])
|
||||
dk = hashlib.sha256(string.encode())
|
||||
return dk.hexdigest()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue