Page 1 of 1

SHA vs md5()

Posted: Wed Jan 25, 2006 6:43 pm
by LiveFree
Hey All!

Im writing the most secure login script possible for a client and I was getting to wondering ... which is more easily cracked?

sha or md5()

Thanks

Posted: Wed Jan 25, 2006 6:57 pm
by John Cartwright
I wouldn't recommend either. Instead SHA256 snipplet by feyd

Posted: Wed Jan 25, 2006 7:06 pm
by josh
But to answer the question sha is more secure :)

Re: SHA vs md5()

Posted: Wed Jan 25, 2006 8:40 pm
by Roja
Tucker wrote:Im writing the most secure login script possible for a client and I was getting to wondering ... which is more easily cracked?

sha or md5()
Precision in language matters here, so forgive me for being pedantic. Neither can be *cracked*. Both can be brute-forced, and md5 has more shortcuts to do so, in addition to having a smaller probability space in the first place.

SHA256 > SHA > MD5.