![]() |
|
#1
|
|||
|
|||
Password encryptionhi i want to have members logging into my system using passwords! I am not sure how to do this, in the db i have put under member username and password but am not sure how this can be tied into the code?
|
|
#2
|
||||
|
||||
Re: password encryptionYour message title and your actual question are 2 different things - certainly related - but not the same thing.
I'll answer one - re:the password encryption. The simplest way to encrypt passwords in the database is to use MySQL's password() function. So the query could look something like this: PHP Code:
Other MySQL functions similar to the PASSWORD() function include: ENCRYPT() MD5() SHA() and even more can be found, if you search their documentation for built-in functions that deal with encryption. |
|
#3
|
|||
|
|||
Re: Password encryptionOne way of hashing data using PHP is called md5() function. md5() converts a string of text into a 32-character hash, using a secret algorithm, thus protecting the original source information. md5() hashed strings cannot be dehashed either, which presents us with the novel problem of working out if two md5-hashed strings are equal. The answer is actually quite simple.
Here i provided the both encryption and decryption using with strong algorithm. Code:
Have a good day!! ______________________________________________ http://www.realmetrics.com - Metrics you can count on |
Recent GIDBlog
Developing GUIs with wxPython (Part 3) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The