prime Posted January 31, 2008 Share Posted January 31, 2008 I have a quick question for the people who know the difference between these. what is the difference between these 2 single way encryption methods, and which one would be the best to use? Quote Link to comment https://forums.phpfreaks.com/topic/88806-md5-vs-sha-1/ Share on other sites More sharing options...
awpti Posted January 31, 2008 Share Posted January 31, 2008 http://www.sandelman.ottawa.on.ca/ipsec/1996/05/msg00116.html A salted MD5 is just as secure as SHA, for the most part. Just don't lose that salt. Only major difference you would see as far as storage is; MD5 is 32 chars SHA1 is 40 chars. Quote Link to comment https://forums.phpfreaks.com/topic/88806-md5-vs-sha-1/#findComment-454840 Share on other sites More sharing options...
prime Posted January 31, 2008 Author Share Posted January 31, 2008 I also just found this: http://groups.google.com/group/comp.security.pgp.discuss/msg/8357547aa75d0bcd?q=md5+collisions&hl=en&lr=&ie=UTF-8&rnum=5 I also didn't realize you could salt md5, I knew you could salt aes and such Quote Link to comment https://forums.phpfreaks.com/topic/88806-md5-vs-sha-1/#findComment-454843 Share on other sites More sharing options...
revraz Posted February 1, 2008 Share Posted February 1, 2008 salt just adds a string or another variable, not sure why you didn't think it could do that. But all you have to do is search for md5 vs sha1 on google and you'll get enough links to keep you busy for awhile. Quote Link to comment https://forums.phpfreaks.com/topic/88806-md5-vs-sha-1/#findComment-454937 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.