DEV Community

Puneet Singh for MojoAuth

Posted on • Originally published at mojoauth.com on

Hashing a Password in NodeJs

We must not save users’ passwords in the database’s plain text in any application as it poses a severe security threat. We should always save a password in the hashed format. But not all hashing functions are suitable to store passwords. Popular hashing functions like sha1 and md5 are not good for passwords. We will learn how to hash a password in NodeJs using better-suited functions such as Bcrypt, PBKDF2, and Argon2.

Read On

Top comments (0)