| · Forum rules (under construction) · Portal |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
| Welcome to MPAM Rebooted Forums. We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
![]() ![]() ![]() |
| 257335 |
Posted: Jan 9 2007, 05:25 AM
|
|
Active member Group: Members Posts: 50 Member No.: 117 Joined: 24-December 06 |
ok in the login script that you sent me iv desided i need to learn how to encrypt the data i would like to use md5 encryption. i have no clue what need to be added to it for everything to be read in right.
|
| patheticcockroach |
Posted: Jan 10 2007, 02:40 PM
|
![]() Administrator Group: Admin Posts: 182 Member No.: 18 Joined: 16-April 05 |
MD5 is not encryption, it's just a hash. What you need to do is simply to save md5($password) instead of $password in your database. Then when the user wants to log in, you compare md5($_GET["password"]) with the password hash stored in the database.
Here is a tiny utility to convert a string to MD5 -------------------- |
| 257335 |
Posted: Jan 20 2007, 12:37 AM
|
|
Active member Group: Members Posts: 50 Member No.: 117 Joined: 24-December 06 |
would the same apply to sha1
|
| patheticcockroach |
Posted: Jan 20 2007, 07:35 AM
|
![]() Administrator Group: Admin Posts: 182 Member No.: 18 Joined: 16-April 05 |
Yes, absolutely. The only difference is that md5 is available from PHP 3 whereas sha1 is available from PHP 4.3.
-------------------- |
![]() |
![]() ![]() ![]() |