What would be the most secure and safest way to protect a users password?
At the moment my script is using md5 which is a 32 bit encryption but Ive read that if the encrypted code is found out by someone it can be bruteforced and then the password can be revealed.
Should I for example use more than one encryption method... For example salt or something...
The Royal Ram
Comments
kinkserious memberVPS - Virtual Prince of the Server
mmmmmmm i dont think that for a webmaster forum that anyone would go to those lengths , just my opinion maybe look around for some stuff on web
well phpbb and vbulletin use md5 encryption however ive been reading a few articles on security and if someone gains access to the database then they are able to find out the admins password and virtually take over the entire forum.
but if its encrypted twice it is so much harder... almost impossible.
or instead of using md5 a random string of about 16 characters could be created and this could be used to generate the encrypted passwords in conjunction with the actual password.
Well yes if some one gains access to the DB then they can generate ther own MD5 encrypted password and change the admins but that aint really the scripts securety problem its the web masters/ servers. If some one gained access to the DB the could mess up the forum any way
md5 should be good enough... no one would go that far as to break md5 if your site doesn't contain anything important... e.g. nasa site or the pentagon...
MD5 is still good yet. The only way someone would be able to get a password hash is if they have access to your database, and in that case, you have other problems
If you are still uneasy about MD5 being "broken", then try mixing two different hash algorithms:
[php]$pass = sha1( md5( $pass ) );[/php]
Comments
but if its encrypted twice it is so much harder... almost impossible.
or instead of using md5 a random string of about 16 characters could be created and this could be used to generate the encrypted passwords in conjunction with the actual password.
I just want it to be as secure as possible...
The Royal Ram
Photoshop Tutorials- Coming soon
Premium PHP Scripts- Coming soon
Haha i should really do some work so i can remove all the coming soon's
If you are still uneasy about MD5 being "broken", then try mixing two different hash algorithms:
[php]$pass = sha1( md5( $pass ) );[/php]
Webmaster-Talk.com
Chroder.com