Overview
Hashing and encryption are often mentioned together, but they solve different problems. Hashing creates a one-way fingerprint. Encryption protects data so it can be decrypted later by someone with the right key.
Knowing the difference helps you avoid a dangerous mistake: using a hash when you needed confidentiality, or using encryption when a simple integrity check would have been enough.