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.
- Encoding Changes how data is written so computers can carry it. Anyone can reverse it. Example: Base64 in email attachments, percent-encoding in web addresses Never use it to hide anything.
- Hashing Makes a fixed fingerprint that cannot be turned back into the original. Example: Password storage, file checks Easy-to-guess inputs can still be found by trying them.
- Encryption Scrambles data so only someone with the key can read it. Example: Messages, disks, websites The only one of the five that keeps the content secret.
- Message authentication code A short tag, made with a shared key, that shows the data has not been changed. Example: Every secure web connection Proves integrity, not secrecy.
- Steganography Hides the fact that a message exists, for example inside a photo. Example: Digital watermarks Usually combined with encryption in case it is found.
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).
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.