You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
- 1In this case, the strength of the hashing function is immaterial. MD5 will absolutely prevent duplicates to a virtual mathematical certainty.Chase Seibert– Chase Seibert2010-05-04 23:03:56 +00:00Commented May 4, 2010 at 23:03
- What does "strength of the hashing function is immaterial" mean? The current attacks against MD5 let you generate collisions in a second on a single CPU -- so no, MD5 will not prevent "duplicates"intgr– intgr2010-05-04 23:30:33 +00:00Commented May 4, 2010 at 23:30
- 1As has been said elsewhere MD5 does not prevent duplicates/collisions, though it does make them rather unlikely. Also, MD5 is only "broken" in the sense that its cryptographically insecure - a determined attacker could create a collision if desired. For the purposes of the original question, though, cryptographic security isn't necessary, so that's not a valid reason for dismissing MD5.David Z– David Z2010-05-04 23:41:15 +00:00Commented May 4, 2010 at 23:41
- A hash function that generates a fixed-length hash is inherently prone to collisions. It's just that we don't want to ever find two distinct texts that hash to the same value. We know the collisions are there, we just don't want to ever find them. Much worse, there's a problem when given any arbitrary text we can generate another distinct text that hashes the same; or when given a hash we can generate a text that hashes to the same hash value. How serious this is for the OP only the OP knows: I think it's a matter of risk assessment.wilhelmtell– wilhelmtell2010-05-05 00:23:51 +00:00Commented May 5, 2010 at 0:23
Add a comment |
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-py