Twitist Forums
How does facebook or any site know if a password entered is correct or incorrect? - Printable Version

+- Twitist Forums (http://twitist.com)
+-- Forum: Facebook forums (/forum-14.html)
+--- Forum: Facebook profile (/forum-15.html)
+--- Thread: How does facebook or any site know if a password entered is correct or incorrect? (/thread-105406.html)



How does facebook or any site know if a password entered is correct or incorrect? - Izzy - 02-26-2014 05:50 AM

I like to think how things work and I have done programming for 3 years in my hs but the stuff is so basic. Like even the advanced stuff we did were easy so I never really 'leanred' anything after the first yr and ive been wondering how it detects the password. Like it has a bunch of users right? where is all of this kind of information stored? What if someone tricked it into thinking a correct password was entered even though there was nothing in the field? Wouldn't that mean that with your email they could just get into your account? Is that even possible or is there some kind of strict link between the user/email and password?


- Mark - 02-26-2014 05:56 AM

stored in the mysql database.


- Java - 02-26-2014 05:58 AM

Assuming you know some basic programming you should understand this...

First you have a password, you type it in. It checks on a server if your "String" is the same as the stored "String" if it is proceed! If not don't. Now all of these passwords are stored on a server / MySQL database. (Basically a giant storage of anything) (Like a huge Google drive or SkyDrive). (Look it up it is fascinating stuff) Anyway that is how it checks it and stores the password. and for the "Tricking it" that is why the code is protected, that is why on some sites you can "trick it" and effectively "hack" into the MySQL database. That is how some modern hacking works. So technically yes. Someone could hack your email and get into it. That is why you use giant email corporations because it is almost guaranteed that no one will find a way to "trick" the servers. Hope I helped!