1 of 3
Mostafa Berg
  • 413
  • 1
  • 4
  • 8

Is there a string that's hash is equal to itself?

I was wondering if there's any string that has a hash equal to itself ? so that using any hash function (none specific), the hash would be equal to that string ?

Example:

md5($string) == $string

This is not a school assignment, just curious and couldn't find any specific answer and not sure how to go and prove/disprove it myself !