Bcrypt
Everyone’s favorite password hashing and salting function!
Bcrypt is written C++ and is about 1.8 times faster than bcryptjs.
Bcryptjs is a written in JavaScript, but is slower.
Why use bcryptjs in that case?
In case you need to hash something in the browser. Bcrypt will run just fine on a server, but if you want to hash client side bcryptjs is needed since bcrypt will not run on a server.
Hash them all!
Never store plain text passwords in your database. If they are stolen, they can be used to login. Instead, hash them first, turning them into a weird looking string of characters. If someone steals the password database of hashed passwords, they can’t use the hash to login and can’t reverse the algorithm to get the password out of it.