Hashing is a cryptographic function in computer science that takes data of any input size and maps it to a hash with a given fixed size. If designed well, it is practically impossible to run inversely, and can ultimately be used as a one-way function.