concept pre - image resistance in category cryptography

appears as: pre-image resistce, pre-image resistce
Real-World Cryptography

This is an excerpt from Manning's book Real-World Cryptography.

First, these security properties assume that you are reasonably using the hash function. Imagine that I either hash the word "yes" or the word "no" and I then publish the digest. If you have some idea of what I was doing, you can simply hash both of the words and compare the result with what I gave you. Since there are no secrets involved, and since the hashing algorithm we’ve used is public, you are free to do that. And indeed, one could think this would break the pre-image resistance of the hash function, but we’ll argue that your input was not "random" enough. Furthermore, since a hash function accepts an arbitrary-length input and always produce an output of the same length, there are also an infinite number of inputs that hash to the same output.