Another kind of useful function is the cryptographic hash function:

  • like any hash function , these map arbitrary-size data to fixed-width integers, in uniformly distributed fashion
  • A hash function is cryptographic if given an output it is computationally infeasible to discover or any where .
  • Example algorithms are MD5 (broken), SHA-1 (broken), SHA-2 (still secure)
  • Useful for authentication of software (file hashes) and implementing passwords.