How are passwords stored?
A password should never be stored in plaintext. So when your logging into your google account or any other reliable service it doesn’t look at the password you entered and validate it by matching it up with your password it has stored in plaintext in some server.
It does something a little more complicated : when you make your account it runs your password through a algorithm called a hash algorithm which gives a “hashed” version of your password which looks something like this :
39e565156f3ec687d71c12c5cfd2f8de3e1e862124743e9c4a1a2a7dc605e88e
So whenever the same password is “hashed” the same hash will come out but with even one change, the hash will change entirely. So when you want to log in to your account it hashes the password you entered and sees if the hash of the password you entered matches the hash they have stored in their database. And it is near impossible to reverse a hash to get the original text from the hash.
This is more preferable than just storing a password in plaintext as if your database is breached, then the passwords will be safe.
So I made a python library to manage hashes and passwords which I will be publishing in some time. The library will be used for hashing passwords and validating those hashes with the real password. Stay Tuned!

