Three techniques constantly get mistaken for one another, because all three turn readable text into scrambled-looking nonsense. The outputs look alike, so people assume the protection is alike too. It is not: treating encoded text as if it were encrypted is how private data ends up published.

One question separates the three cleanly: who can undo it? Keep the free Encryption Playground in mind as you read: its output contains all three ideas in one string.

Contents

  • Quick answer
  • Encoding: a format change anyone can reverse
  • Hashing: a one-way fingerprint nobody can reverse
  • Encryption: reversible only with the key
  • One string with all three inside
  • How to test the difference yourself, step by step
  • Worked example: reading an OVAT1 string layer by layer
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

Encoding changes data's format so it can travel through text-only systems, and anyone can reverse it: there is no key. Hashing turns data into a fixed fingerprint that cannot be reversed at all; it checks that something has not changed. Encryption scrambles data so only the right key or passphrase can reverse it. The Encryption Playground output, an OVAT1 string, stacks all three: Base64 encoding outside, a key from a hashing-style derivation called PBKDF2, and AES-GCM encryption at the core.

Encoding: a format change anyone can reverse

Encoding is translation, not secrecy. Base64, the encoding you will meet most often, rewrites binary data using only letters, digits and a couple of symbols, so it can pass through email systems, URLs and text fields that would mangle raw bytes. The rules are public, and decoders are built into every browser.

That openness is the point: encoding solves a transport problem, and solves it well. What it never does is hide anything. Hand an encoded string to a stranger and you have handed them the original in a light disguise. If you remember one line from this guide, make it this: scrambled-looking is not the same as secret.

Hashing: a one-way fingerprint nobody can reverse

Hashing turns data into a fixed-size fingerprint. The same input always gives the same fingerprint, and it is deliberately one-way: no key, no undo button, no path back from fingerprint to input.

That is what hashing is for: verification. Store the fingerprint of a password instead of the password, and at login you hash what the user types and compare fingerprints. Publish the fingerprint of a file, and anyone can confirm their copy is unchanged. What hashing cannot do is give the original back. The only attack is guessing: try a likely input, hash it, compare. That works against short or predictable inputs, which is why hashing common words barely protects them.

Key derivation, which turns a passphrase into an encryption key, borrows hashing's machinery. The playground uses PBKDF2-HMAC-SHA-256 with 210,000 iterations, per current OWASP guidance, so each guess costs an attacker real time.

Encryption: reversible only with the key

Encryption is the only one of the three built for secrecy. It scrambles data with a key so that only the key holder can reverse it. Everyone else faces output they cannot read, and cannot practically brute-force when the key is strong.

In the playground, the key is derived from your passphrase, and the encryption is AES-GCM, which adds an authentication tag that detects tampering. A wrong passphrase derives a wrong key, the tag check fails, and the tool reports could-not-decrypt instead of showing corrupted text. The essential point is the direction of travel: encryption is a locked box with a key, encoding is a relabelled box anyone can open, and hashing is a shredder that leaves only a fingerprint.

One string with all three inside

Now stack them. When the playground encrypts a note, the salt and IV that decryption will need are packed alongside the AES-GCM ciphertext in the tool's own documented layout: a version byte, a 16-byte salt, a 12-byte IV, then the ciphertext. That bundle is then Base64 encoded into one tidy, copyable line of text.

So a single OVAT1 string demonstrates the whole taxonomy. The outside layer is encoding, reversible by anyone, and reversing it gains an attacker nothing but packed bytes. The key never travels at all; it is re-derived from your passphrase through PBKDF2 each time. The core is encryption, reversible only with that key. People see the familiar Base64 characters and conclude the string is "just encoded": they have identified the wrapping paper and missed the safe.

How to test the difference yourself, step by step

  1. Open the Encryption Playground, type a short note on the Encrypt tab, and give it a passphrase.
  2. Click Encrypt and copy the OVAT1 string.
  3. Paste the string into any Base64 decoder. You get raw bytes back, not your note: the encoding layer hides nothing, and it is not where the secrecy lives.
  4. Open the Decrypt tab, paste the string and enter the correct passphrase. Your note reappears: encryption reversed by the key holder.
  5. Enter a wrong passphrase instead. You get could-not-decrypt: the derived key is wrong and the authentication tag refuses to pass. That refusal is the whole distinction.

Worked example: reading an OVAT1 string layer by layer

The tool's documented example encrypts the note "Meet at the old depot at 9" with the passphrase "library card", producing:

OVAT1.AY2T35LSmwcqthg/FH3lhifhB29/Ni7STzQzPHDt3yhv5oZBPZGgi2TiokVf9rEH8Xv7qb3j7jgB40e+fhDRKa6qfyllxLc=

The OVAT1 prefix announces the format. Everything after it is Base64, the encoding layer, chosen so the string survives copy and paste. Decode it and you hold the packed bundle: version byte, 16-byte salt, 12-byte IV, ciphertext. None of it is the note. To reach the note you must derive the key from "library card" and the salt through PBKDF2's 210,000 iterations, then let AES-GCM verify and decrypt. Any other passphrase fails the tag check. Three techniques, three different answers to "who can undo this", one string.

Limitations and honest tradeoffs

These categories blur at the edges in real systems; this guide keeps them tidy on purpose. Real products combine techniques in layers, as the OVAT1 string shows, and key derivation sits between hashing and encryption. The tidy version is still the right mental model for decisions.

The playground's format is also its own: OVAT1 is not a standard like PGP or age, and no other app can open it. And the tool is a teaching aid, not a vault: not safe for banking passwords or real secrets, a forgotten passphrase means the text is permanently unreadable, and a weak passphrase can be guessed offline however sound the encryption underneath is.

Common mistakes

  • Storing secrets "encoded" and calling it security. Base64 in a config file or a URL is readable by anyone who finds it. If it must stay secret, encrypt it properly.
  • Trying to decrypt a hash. There is nothing to decrypt. A hash can only be matched by guessing the input.
  • Assuming encryption and encoding look different. They often look identical. Appearance tells you nothing about who can reverse the process.
  • Believing a strong algorithm fixes a weak passphrase. A passphrase like the published example, used for real, would fall to patient offline guessing. The secret has to carry its share of the weight.
  • Using a learning tool for production secrets. Real secrets belong in an audited password manager or dedicated encryption software, not a teaching tool.

FAQs

Is Base64 a form of encryption? No. Base64 is encoding: a format change anyone can reverse, with no key and no secret. It exists so binary data can travel through systems built for text. Anything only Base64 encoded can be read by anyone who recognises it.

Can a hash be decrypted back to the original text? No. Hashing is one-way by design: no key, no reverse operation. The only way to find what produced a hash is to guess inputs, hash them and compare, which is why short or predictable inputs are unsafe to hash and share.

What makes encryption different from both encoding and hashing? Encryption is reversible, but only with the key: without the passphrase the string cannot be read, with it the original comes back exactly. Encoding needs no key to undo, and hashing cannot be undone at all.

Why does an OVAT1 string look like plain Base64 if it is encrypted? Because the outermost layer is Base64. The encrypted bytes, with the salt and IV, are encoded in Base64 so the result is one copyable line of text. Decoding that layer gives you packed bytes, not the message, which stays protected by AES-GCM underneath.

Which of the three should I use to protect a secret? Encryption, with a strong passphrase or key, through an audited tool built for the purpose. Encoding protects nothing, and hashing verifies data rather than keeping it readable later. The Encryption Playground is for learning, not for real secrets such as banking passwords.

Conclusion

Keep the one-question test and you will not confuse the three again: encoding is undone by anyone, hashing by nobody, and encryption only by the key holder. The Encryption Playground puts all three in one string, so you can peel the layers yourself. For a closer look at the encryption layer, read AES-GCM Explained in Plain Words. More guides in this series live in our Security and Privacy Utilities guides.

References