Bcrypt
How to Use Bcrypt Js using Next Js || how to Secure password || step By Step Secure using Bcryptjs

Table Of Content
Headings: 1 (H2: 1, H3: 0)
Bcrypt js basically used for secure the storing data Like Passwod,secret No, .etc Its work Like If you want to secure your Password Stroring Process so bcrypt is a best option because bcrypt js used hasing method if you send a User Password Like (you pass) so this passs hased using bcrypt and you use the hased to store DB and get Db And it's totaly secure And hacker hacked the db so hacker not read the hashing password .
So let's talk about -
How To use Bcrypt Js?#
First Install bcryptjs -
codenpm i bcryptjs //Then import bcrypt from "bcryptjs"; const password = "Admin@1234"; const hashedPassword = await bcrypt.hash(password, 10); console.log("password hashed" + hashedPassword); // Example hash output: $2b$10$abcdefghijklmnopqrstuvwx.YzABCD/EFGHijklmnopqrstuv
