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?

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.