Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6954007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:33:02+00:00 2026-05-27T14:33:02+00:00

I have read some texts about strong collision resistance and weak collision resistance, but

  • 0

I have read some texts about strong collision resistance and weak collision resistance, but I was unable to understand the difference. The only thing I can understand that there is a low probability of collision in hash functions which have weak collision resistance, and a higher probability of collision in strong collision resistance hash functions. I could not understand what is the real thing, what is the significance of these parameters. Can anyone help me on this ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:33:02+00:00Added an answer on May 27, 2026 at 2:33 pm

    The weak collision resistance property is sometimes also referred to as second preimage resistance:

    Given an arbitrary x there exists no x’ with x’ != x so that h(x) = h(x’)

    Strong collision resistance on the other hand is defined as:

    There exist no x and x’ with x != x’ so that h(x) = h(x’)

    The obvious difference in their definitions is that for weak collision resistance we assume to be bound to a particular choice of x, whereas in the definition of strong collision resistance we are free to arbitrarily choose our x and x’. Still this seems to be very similar, so let’s look at two examples.

    Weak collision resistance

    A good example where we are actually only interested in weak collision resistance would be a simple password storage scheme. Assume we store user-provided passwords in a database by storing their hash. Authentication would succeed when the hash of some password a user provides is equal to the value that was stored previously (this is an inherently insecure scheme though, but please bear with me for the moment). Now in that case, the given x is the (unknown) original password that was provided earlier. If an attacker were capable of solving the “second preimage” problem efficiently, he could obtain an x’ whose hash value is the same as that of the original x, and would thus be authenticated successfully. Please note that the capability to produce arbitrary collisions (i.e. solving the strong collision problem) is useless in general in this scenario because it is not too likely that the x and x’ we get resemble actual passwords whose hashes have already been stored in the database.

    Strong collision resistance

    A different scenario where our concern is strong collision resistance instead is for example an application where you want to be able to look up arbitrary data stored in a database with the help of unique ids. Instead of issuing queries on the original data (which would often be very slow due to the potentially unbounded size of the data), you would compute hashes of the data instead. Hashes are very compact, limited in their size and can thus be queried much more efficiently. As a matter of fact, in these cases you often don’t mind the (second) pre-image resistance property of a hash function at all, mostly because the preimages themselves are no secret. What you do care about, though, is that you would absolutely want to avoid two distinct data sets to hash to the same value, which is essentially a collision. You don’t care about any collision in particular, but you want this property to hold universally – i.e. you don’t want any two data sets hash to the same value (imagine there is a ‘unique constraint’ defined on that column). Because security is often no issue in these applications, we often use non-cryptographic hashes, mostly because they perform better.

    The relationship between both

    Intuitively and also implied by their names, we would assume that strong collision resistance is something that is harder to provide than weak collision resistance. Luckily for us, our intuition can be proven to be correct under the Random Oracle Model. We can prove this by contrapositive by assuming that if we had an efficient probabilistic polynomial algorithm for solving “second preimage”, then this would also give us an efficient algorithm for solving “collision”.

    Consider a hash function h and this following simple probabilistic algorithm [1]:

    Let 2ndPreimage be another probabilistic (e, Q)-algorithm that solves “second preimage” for the hash function h.

    Choose x uniformly at random
    value = 2ndPreimage(h, x)
    case value == failure -> return failure
    case value == x' (!= x) -> return (x, x')
    

    It is easy to see that this is also an (e, Q)-algorithm that solves the strong collision problem. This implies that given we have an algorithm to solve “second preimage”, we can also use this algorithm that is likely to produce a collision. As we made no assumptions on the underlying hash function h, we can now safely say that

    Strong collision resistance implies weak collision resistance but the opposite doesn’t necessarily hold.


    [1] e is the success probability of the algorithm, 0 <= e < 1. Q is the maximum number of oracle queries (i.e. “evaluations” of the algorithm). In case of success, the algorithm returns a valid solution, otherwise it returns a value indicating failure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I read some post about ASP.NET MVC application, but I found only article on
I have a web page with a read-only text box which shows some HTML
I have read some of the questions and answers here, but it none match
I have read some posts on here about not mixing parameters when passing into
I have read some posts about this topic and the answers are comet, reverse
I have read some tutorials about highlighting search terms in Lucene, and came up
I have read so much (dozens of posts) about one thing: How to unit
I have a .txt file having some text. I want to read this file
I have to read a text file and based on some logic, make some
In support of some legacy code, I have to read a text file and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.