coisas
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
from hashlib import sha256
|
||||
import time
|
||||
|
||||
# password = hashed password
|
||||
def generate_token(password, salt):
|
||||
time = time.strftime('%d%m%Y%H%M')
|
||||
token = sha256((password + salt + time).encode('utf-8')).hexdigest()
|
||||
Reference in New Issue
Block a user