title: Generating and Verifying password hashes in Node.js same as Python's werkzeug
body: <p>Im moving an app from Python Flask to ExpressJS.
  I need some help with password hashing and veryfying.
  In Flask, you can do this:</p>
  
  <pre class="lang-py prettyprint-override"><code>from werkzeug import generate_password_hash, check_password_hash
  pass = 'abcd'
  pass_hash = generate_password_hash(pass)
  check_password_hash(pass_hash, pass)
  </code></pre>
  
  <p>And in 4 lines you have a boolean response checking if the password corresponds to the hash.</p>
  
  <p>Now to NodeJS: I know how to create a sha256 hash, a HMAC hash or a cypher, but how would i check the password? </p>