Properties of hash functions
🏷️Properties of hash functions
- The significance of hash functions is that they provide a unique identifier for everything.
📌 Pre-image resistance
- This is like a blender where no one can create an inverse function that changes the output back into the input.
- It is impossible to estimate the input from the digest (hash).
📌 Second pre-image resistance
- You cannot find a different input that produces the same result.
- Given an input and its digest pair, it's impossible to find another input that creates the same digest.
📌 Collision resistance
- You cannot generate two different inputs that produce the same digest.
- The difference from second pre-image resistance is as follows:
- Second pre-image resistance does not allow control over the first input, whereas collision resistance allows control over both inputs.