NodeJS: bcrypt vs native crypto

fancy picture fancy · Aug 5, 2011 · Viewed 28.9k times · Source

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

bcrypt looks great.

Answer

Mike Scott picture Mike Scott · Aug 5, 2011

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.