Encryption: The Simple Lock
With encryption, it's like putting your password in a box with a simple lock. You use a key (a special number) to lock or unlock the box. If someone steals the box, they can open it if they have the same key. It's quick and easy, but not the most secure.
Hashing: The Magic Soup
Now imagine your password goes into a magic soup (called hashing) that changes it completely. No matter what you put in, it always comes out as something different. Even if someone steals the soup, they can't find your original message, just like how you can’t tell what went into a blender just by looking at the mix.
Salting: The Secret Ingredient
If two people use the same password, the magic soup might give them the same result. That’s where salting comes in, adding a secret ingredient (a salt) to each person's password before mixing it up. Now even identical passwords become unique.
Bcrypt: The Super Strong Lock
Finally, bcrypt is like a super strong lock that gets harder to open every time someone tries. It’s the best choice for keeping your password really safe, especially if you're using it on a website or app.
Examples
- Like turning a cake into crumbs, you know it was a cake, but you can’t make it whole again.
- Salting is like adding sugar to the cake before turning it into crumbs.
Ask a question
See also
- How Does Password Hashing, Salts Work?
- How Does Hacker Teaches How to Manage Passwords Work?
- What is Cryptographically secure random number generator (CSPRNG)?
- What is RSA?
- What is Decode?