DEV Community

Cover image for Password hashing
athul jain
athul jain

Posted on

Password hashing

Password hashing involves transforming a password into alphanumeric characters using specific algorithms. Hashing proves advantageous when malicious actors compromise data. With hashing, the obtained data is in hash format, rendering it unintelligible. Popular algorithms for password hashing encompass bcrypt and SHA.

In this article, the spotlight will be on utilizing bcrypt for password hashing in Node.js. Here’s an example of hashing plain text:
hash('HeypasswordIsSafe@') = 1b21hb2hb1u2gu3g2fxy1v2ux1v2y3vu12g4u3ggvgu43598sa89da98sd79adshuavusdva9sdguasd

Top comments (3)

Collapse
 
priyabapodra profile image
Priya Bapodra • Edited

Is this a concept about converting plain text to cypher text. That means converting normal text to non readable text, which means you have to need technique to get original text?

Collapse
 
rutvikjani profile image
rutvikjani

No, in node.js we have module called "bcrypt.js". It is mainly for saving normal password to hash password into database to secure our data. Now if you want to use it to hash any plain text then it is upto you.

Collapse
 
priyabapodra profile image
Priya Bapodra

okay, thank you for the information