thminco Posted October 24, 2011 Author Share Posted October 24, 2011 Very interesting Dan and it makes a lot of sense now. What about using both md5 and sha1 and salt and concatenating them all together? Would that be another layer of defense? Or maybe 2 password fields stored in the database, one with the md5 data and one with the sha1 data? Quote Link to comment https://forums.phpfreaks.com/topic/249722-trouble-with-login-scripting-using-php-mysql/page/2/#findComment-1281908 Share on other sites More sharing options...
xyph Posted October 24, 2011 Share Posted October 24, 2011 If you're starting from scratch you should check the article in my signature. SHA1 is too fast an algorithm to trust for password hashing, nor was it designed for it. Storing 2 hashes is redundant. Having 50 passwords will always be more secure than 1, but if you're going to go that far you're better off using a single, large key of some sort. Quote Link to comment https://forums.phpfreaks.com/topic/249722-trouble-with-login-scripting-using-php-mysql/page/2/#findComment-1281909 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.