Jump to content

HASH?


wannabephpdude

Recommended Posts

I have written a [color=red]"login"[/color] system for one of my websites that works with a [color=green]MySQL[/color] database and a [color=orange]cookie[/color]. I would like to store the password in the MySQL database encrypted (via hash). I know phpBB does it using hash some how. Does anyone know of some tutorials I can read about HASH?

Thanks in advance. PEACE.
Link to comment
Share on other sites

Even though Im not the best PHP Dude, far from it, MD5 has been the best solution, I use it on all my systems.


All you have to do (if I remember, I use the same markup for all my DB's) is that you set the particular row to MD5.

To make the Login Box convert what the user types in as their password to MD5 Encryption I think you do add the following to your code (the code that follows the

[quote]

// This converts the PW to MD5 Hash.

$pw_login = md5($pw_login);

[/quote]

Of Course Im using the variable $pw_login in the rest of my code and this bit to represent the password field.

Sorry if its all blurry, no good explaining things

_R


Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.