def hash_password(password, salt): return hashlib.sha256(salt.encode() + password.encode()).hexdigest() + ':' + salt # Check a hashed password