title: Node.js password hashing bcrypt alternative using crypto
body: <p>I'm actually using <code>bcrypt</code> module to hash and compare hashed passwords.</p>
  
  <p>What i would like to do is to remove the <code>bcrypt</code> module and use the default <code>crypto</code> library both for hashing and comparing passwords.</p>
  
  <p>Is this possible?</p>
  
  <p>Will this be less safe than using <code>node-bcrypt</code>?</p>
  
  <p>Do you have any example/tutorial/doc/link on how to do?</p>
  
  <p>or example i'm doing like this actually:</p>
  
  <pre><code>bcrypt.hash(string,secret_key)
  bcrypt.compare(string,string,secret_key);
  </code></pre>
  
  <p>i just would like to replicate this with crypto if possible:</p>
  
  <pre><code>crypto.hash(string,secret_key)
      crypto.compare(string,string,secret_key);
  </code></pre>