node.jscryptographybcrypt

Node.js: bcrypt vs native crypto


Can someone point out the differences between the two and example situations where use each?

bcrypt looks great.


Solution

  • Use bcrypt where you want to do slow and computationally expensive hashing -- this will generally be for hashes where you really don't want an attacker to be able to reverse the hash, e.g. user passwords. Use native crypto for everything else.