# encoding

## Encoding Is Not Encryption

Sometimes people mix up **encoding** and **encryption**. They may sound similar, but they are **very different**.

### By the end of this blog, you'll know:

* What encoding is
* Why it’s used
* Why is it not used as encryption

## What is encoding?

**Encoding** is a way to change data into another format so that it can be :

* Read by different systems
* Stored safely
* Sent over the internet

So encoding is not meant to hide information. It’s purpose is to make sure that data can travel properly.

For example:

* `Hello` becomes `SGVsbG8=` in **Base64 encoding**

Anyone can decode it. There is **no secret key**. It’s like writing something in a different alphabet not hiding it and just formatting it.

## Real World Example

Imagine you send a message through a tunnel.\
**Encoding** wraps your message in a box that fits through the tunnel.\
**Encryption** locks that box so only the right person can open it.

Thats why **Encoding** and **Encryption** is very different because they have different purposes.

## Why Encoding Is Not Safe

Here is the key point :

> **Encoding is not meant for security. It doesn’t protect your data.**

Anyone who sees encoded data can decode it easily. If you use encoding instead of encryption to **protect** sensitive information you're basically just disguising it and **not locking it**.

## Encoding is useful

Encoding is helpful when :

* We want to send data over the web
* Making URL more readable
* Working with systems that expect certain formats

But if you want to keep information **private** just use **encryption** and not encoding.

So remember Encoding is not meant to keep your data safe!

\- auric
