title: How to perform password reset in Node.Js app using hash?
body: <p>I want to implement password reset in my Node.Js app using a very good advice from here <a href="https://stackoverflow.com/a/27580553/712347">https://stackoverflow.com/a/27580553/712347</a> where I would not have to record any tokens into my database.</p>
  
  <p>Instead @airtonix suggested to use a hash function based on the user's login, email, password, timestamp, secret and salt.</p>
  
  <p>What I don't understand is how do hash functions actually work — let's say I get a certain sequence from the data above — what would be the algorithm (and the library) to use to check if it was generated from the same data using a different salt?</p>
  
  <p>Or am I misunderstanding the whole thing?</p>