Secondpreimage
Second preimage refers to a concept in cryptography related to hash functions. Given a hash function H and an input x, a second preimage is another input x' not equal to x such that H(x') = H(x). Second preimage resistance is the property that, for a randomly chosen hash function, it should be computationally infeasible to find such an x' when x is fixed.
This concept is distinct from preimage resistance, which asks for an input x that produces a given
For an ideal n-bit hash function, second preimage resistance is expected to require about 2^n evaluations of
In practice, hash functions such as SHA-256 (256-bit output) are designed to provide strong second preimage resistance,