InvisionFree - Free Forum Hosting
Free Forums. Reliable service with over 8 years of experience.

Learn More · Sign-up Now
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:

Name:   Password:


 

 md5
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.
Top
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


--------------------
PatheticCockroach - MPAM Rebooted - Wiki4Games, the free video game wiki
user posted image
Top
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
Top
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.


--------------------
PatheticCockroach - MPAM Rebooted - Wiki4Games, the free video game wiki
user posted image
Top
« Next Oldest | Software support (freewares, PHP...) | Next Newest »
InvisionFree - Free Forum Hosting
InvisionFree gives you all the tools to create a successful discussion community.
Learn More · Register Now

Topic Options



Hosted for free by InvisionFree* (Terms of Use: Updated 2/10/2010) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Page creation time: 1.0714 seconds | Archive