Good cryptographic hashes (SHA-256, SHA-3, BLAKE3) are one-way: given the digest, you can't recover the input. They're also collision-resistant — finding two different inputs with the same hash should be computationally infeasible.
Hashes power password storage (with a salt and a slow function like bcrypt or Argon2), file-integrity checks, Git commit IDs, blockchain proofs, and HMAC signatures.
Older algorithms like MD5 and SHA-1 are broken for security use. They still work for non-adversarial checksums, but never for anything that could be attacked.