• Answers
  • Web

Why is sha1 more safe than md5?

why is sha1 more safe than md5?


Share Send to a friend Watch Report
 

Best Answer

 
18 helpful answers

Both

MD5 and SHA-1 have known weaknesses that allow for a reduced effort in finding collisions. A collision is when different inputs results in the same hash value. Since hashes are used to verify the contents of a message, this is bad, because the same hash could mean either message. In most cases simply any collision is not enough to do real damage though - an attacker would need to find one that produces the same hash for both the original content and the modified content while still leaving such content useful (i.e. leaving an executable program code still doing something more or less intended, or leaving a text message mostly intact while only changing certain words/phrases). A hash algorithm is weakened when a method is known that reduces the effort of finding such a collision considerably compared to the brute force method (trying all combinations until you happen upon one that produces the same hash value).
Helpful?(5)
Rated as Best Answer

 

All Answers
Order by

 

sha1 and md5 are both based on the same idea. To each and every string there is an n-character hexadecimal number which represent it. There is a table (hash table) which tells how to match a string and a number. Though there can be two strings with the same value, it's rarely ever matters in this encodings.

In md5 encoding there are 32 hexadecimal characters that represent a string and in sha1 there are 40 characters. As you see, there is less chance to find another string with the same hash-code as an encoded string if you have more characters.

Hence, the more - the merrier.

 

Both

MD5 and SHA-1 have known weaknesses that allow for a reduced effort in finding collisions. A collision is when different inputs results in the same hash value. Since hashes are used to verify the contents of a message, this is bad, because the same hash could mean either message. In most cases simply any collision is not enough to do real damage though - an attacker would need to find one that produces the same hash for both the original content and the modified content while still leaving such content useful (i.e. leaving an executable program code still doing something more or less intended, or leaving a text message mostly intact while only changing certain words/phrases). A hash algorithm is weakened when a method is known that reduces the effort of finding such a collision considerably compared to the brute force method (trying all combinations until you happen upon one that produces the same hash value).
Posted 2006-08-15T23:09:21Z

Sign in to participate

Got an answer for shahata5? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Questions

Other people asked questions on similar topics, check out the answers they received:


Q:

Mathematics is a basic aspect of life, just ...

mathematics is a basic aspect of life, just imagine a world without numbers! can some one eloborate this sentence?
Submitted by Mukarram   1 year ago.
  • viewed 102 times


Q:

Why do teachers preach that mathematics develops ...

Why do teachers preach that mathematics develops one's thinking? Is there any sensible rationale that the skills developed in the ...
Submitted by drabsv   2 years ago.
  • viewed 719 times
Last answer posted 5 days ago by Dr. Bennett


Q:

What is the future of mathematics, what remains to ...

What is the future of mathematics, what remains to be discovered there?
Submitted by drabsv   2 years ago.
  • viewed 760 times
Last answer posted 20 days ago by Gromwald



» More...

Explore Related Posts in Forums

Major changes to A Level Mathematics and Further Mathematics

Major changes to A Level Mathematics and Further Mathematics Hello all, You may be aware that major changes to A Level Mathematics and Further Mathematics are planned for 2012. The draft Re: Major changes to A Level Mathematics and Further Mathematics I quite liked the fact

Is mathematics a human tool, or is reality, in some fundamental way, math...

Yes, mathematics are more complex than it appears. What constitutes a mathematical proof? What had debunked this full article in his Incompleteness theorem.Well, mathematics involves the study Yes, mathematics are more complex than it appears. What constitutes a mathematical proof? What is "obvious" in maths? Not...

Mathematics and Art Lesson Plan Help - mathematics

I am trying to create a 6th-7th grade lesson plan for Mathematics and I want to relate it to Art . I think it would be a good idea to show students how Mathematics can be learned visually and to also of Mathematics and More J of M by Theoni Pappas have a lot related to art Universal Patterns
» More...
Powered by
Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
  • Answers
  • Web
Copyright © 2006-2009, Yedda Inc. and respective copyright owners · CC License