The first property that we need from a cryptographic hash function is that it is collision resistant. A collision occurs when two distinct inputs produce the same output. A hash function H(-) is collision resistant if nobody can find a collision.
Narayanan, Arvind, et al. (2016). Bitcoin and Cryptocurrency Technologies. United States: Princeton Press