A one-way function is a mathematical function that is easy to compute in one direction, yet difficult to reverse without specific information. It is fundamental in cryptography, enabling secure encryption and digital signatures by ensuring that original inputs cannot be easily derived from outputs.