SyntaxFix
Write A Post
Hire A Developer
Questions
To store the password (PY3):
import hashlib, os password_salt = os.urandom(32).hex() password = '12345' hash = hashlib.sha512() hash.update(('%s%s' % (password_salt, password)).encode('utf-8')) password_hash = hash.hexdigest()