def compute_hash(password, salt): return hashlib.pbkdf2_hmac('sha256', password.encode('utf-8'), salt, 5000)