Jump to content

any tips on storing passwords securely in a database


cluce

Recommended Posts

I have a login page where a user logs in but I will not have a registration page.  I know all about salt, md5, sha-1 and password function by mysql. I am trying to think of the best secure method in storing all the users passwords.  I will not have a registration page so I dont know how I can add salt to it without that. Maybe md5 or sha-1 will be secure enought I am not sure yet.  *I already have a list of the usernames and passwords that I plan on imporintg into the table .Any ideas is greatly appreciated?

Link to comment
Share on other sites

generally, if you restrict the password in plaintext to only being transferred during the one act of logging in, you should be okay.  store it in the session, the database, and anywhere else you'll be keeping it for more than one transaction in its hashed form.  MD5() will likely suffice, as i tend to think that anyone who can bypass or crack an MD5()'d password also has the patience and/or intelligence to circumvent any more elaborate schemes you may have.

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.