Encoding, hashing and encryption
Encoding changes how data is written so computers can handle it, and anyone can reverse it. Hashing makes a fixed fingerprint that cannot be reversed. Encryption scrambles data so only someone with the key can reverse it.
Encoding is translating a note into Morse code. Hashing is taking its fingerprint. Encryption is locking it in a box.
Why it matters
Mixing them up causes real security failures, such as companies 'protecting' passwords with an encoding that anyone can undo.
In plain words
Encoding changes how data is written so computers can handle it, and anyone can reverse it. Hashing makes a fixed fingerprint that cannot be reversed. Encryption scrambles data so only someone with the key can reverse it.
Think of it like this
Encoding is translating a note into Morse code. Hashing is taking its fingerprint. Encryption is locking it in a box.
Why it matters
Mixing them up causes real security failures, such as companies 'protecting' passwords with an encoding that anyone can undo.
Where you meet it
Base64 text in emails and web addresses (encoding), password storage (hashing), and everything in this glossary (encryption).
More diagrams: Encoding, hashing, encryption, MACs and hiding side by side
Go deeper history and technical detail
Base64, hexadecimal and URL encoding provide no secrecy at all. Hashing has no key, so it cannot hide data that is easy to guess, which is why passwords need salts and slow hashes. Encryption is the only one of the three designed to keep a secret from someone who does not hold the key.
Related terms
Cite this page Encryption Observer, “Encoding, hashing and encryption”, encryption.observer/terms/encoding-vs-encryption/, checked December 2026.