Aug 03, 2023
Every webisite you sign up before don't have your password. Instead they have the hash version of it. Hash is a random words collected to make uniuqe Identifier for the password. Whenever your create a password it will be encrypted to random words. These random words can `not` be dcrypted. Only can be encrypted. This makes it secure to stores passwords in database. Cuz even if the hacker get access to your database there is no way to know the original password. Only can see the random words that will represent the original password. Which are useless without knowing the original password.
Only the user can login by providing the right password that will produce the exact same random words(hash) stored in the database.
Here is simple graphics to get the big picture.