Page 1 of 1

[Tutorial] Securing MySQL Password from Hackers

Posted: Tue Apr 20, 2010 8:37 am
by Volestar
Not much of a tutorial, just a how-to. You should know how to do the following steps already. If not, take a tutorial.

REGISTRATION
Before registering a password to a database, encrypt it.

Code: Select all

bin2hex(mhash(MHASH_sha256,$pass));
Once you've encrypted it, register that to the database.

LOGGING IN
When logging in, you gotta make sure that the entered password gets encrypted into the same thing as it was in the database.
This is case-sensitive, seing as one tiny difference in a password can totally change the encryption.

Re: [Tutorial] Securing MySQL Password from Hackers

Posted: Thu Apr 22, 2010 6:48 am
by Mordred
howto, hownotto:
viewtopic.php?t=62782