A hash function converts input data of any length into a fixed-length output (the hash value). Hash functions are one-way – you cannot reconstruct the original data from the hash. They are used to verify data integrity (checksums), store passwords securely and create digital signatures. SHA-256 and SHA-512 are the current recommended algorithms. MD5 and SHA-1 are considered insecure for cryptographic purposes but are still used for checksums.