A cryptographic hash function is a hash function that is suitable for use in cryptography. It is a mathematical algorithm that converts input of any size to a bit string of a fixed size. It is a one-way function, that is, a function which is practically infeasible to invert.