Free lesson · about 7 minutes
Encoding. Encryption. Hashing.
Three ideas people mix up. Learn the difference, then try all three yourself.
The one-line difference
Same data. Three jobs.
Make it usable.
Reshapes data so systems can store and send it. Anyone can reverse it. No secret is involved.
- Example Base64
Keep it secret.
Scrambles data with a key so only the right key holder can read it. It protects confidentiality.
- Examples AES, RSA
Prove it is unchanged.
Turns any input into a fixed-length fingerprint. It cannot be run backwards. It protects integrity.
- Examples SHA-256, SHA-3
The Transform Lab
Type anything. Watch it change.
One sentence, three transformations, live.
Encoding · Base64
No key neededEncryption · keyed cipher
Needs the key
Hashing · SHA-256
One-way
Watch what happens. The Base64 decodes straight back, no secret needed. The cipher only returns your text when the key matches, and one changed letter turns it into noise. The hash cannot be reversed, and changing one character of the input gives a completely different fingerprint.
The cipher here is a simple teaching demo (a key-seeded stream cipher), not real cryptography. Nothing you type leaves your browser.
What thrillers get wrong
Four things you hear that are not true.
Side by side
At a glance.
| Encoding | Encryption | Hashing | |
|---|---|---|---|
| Main goal | Make data usable | Keep data secret | Verify data is unchanged |
| Key needed | No | Yes | No |
| Reversible | Yes, by anyone | Yes, with the key | No |
| Output size | Slightly larger than the input | Similar to the input | Fixed length |
| Keeps secrets | No | Yes | No, short inputs can be guessed |
| Typical use | Base64 in email and web addresses | HTTPS, disk and file encryption | Password storage, file integrity, signatures |
Remember it like this
A costume, a locked box, a fingerprint.
A costume.
Anyone can take it off. It changes how the data looks, not who can see it.
A locked box.
Only the right key opens it, and what is inside comes out unchanged.
A fingerprint.
It identifies something without letting anyone rebuild it.
Keep learning.
Free lessons today. Certified courses when you are ready.