Home
Starting Up
Case Studies DB
Products
Ideas DB
Vibe Coding Tools
Subscribe to IH+
Starting Up
Case Studies
Ideas DB
Products DB
Sign in
Join
3
Likes
1
Comment
How to Salt a Password?
by
Shrey
How to Salt a Password? What does password salting do to protect against bad actors?
Password salting is a security technique that involves adding a unique and random string of characters, known as a "salt," to the password before hashing it. The salt is then stored along with the hashed password in a database. This process helps to protect against dictionary and pre-computed attacks, as it makes it more difficult for hackers to guess or crack the password.
To salt a password, you would first generate a unique salt for each password and store it in a secure location. Then, when a user creates a new password, the salt is added to the password before it is hashed and stored in the database. When the user tries to log in, the salt is retrieved and added to the password they enter before it is hashed and compared to the stored hashed password. If the hashes match, the user is granted access. If the hashes do not match, the login is denied.
You can read more in blow articles-
https://mojoauth.com/blog/what-is-password-salting/
https://cyberhoot.com/cybrary/password-salting/