title: Recover a salted and hashed password in python
body: <p>I have managed to salt and hash password using this method:</p>
  
  <pre><code>import hashlib, uuid
  salt = uuid.uuid4().hex
  hashed_password = hashlib.sha512(password + salt).hexdigest()
  </code></pre>
  
  <p>How do I reverse this process to recover the actual password? </p>
  
  <p>Update: You are supposed to take a password from the user, apply the same salt and hash method to their password, and then compare it with the originally salted/hashed password to see if they match. That makes perfect sense. </p>