📄Base64
Also known as Base 64, Base64 Encoding
Any data written with only letters and digits. Then it can go where only text goes.
Think of it like
Think of it like packing odd toys in boxes of one size. Nothing is hidden, just packed.
Example
Jack puts a small logo straight into his web page as Base64 text. The browser turns it back into the picture.
Why it matters
It lets pictures and files ride inside text-only formats. You see it in emails, tokens and data URLs.
Definition
Example code
console
$ echo -n "Hi Emma" | base64
SGkgRW1tYQ==Common mistake
Key takeaways
- 164 safe signs. Letters, digits, plus and slash.
- 2About a third bigger. Four characters for every three bytes.
- 3Not a secret. Anyone can turn it back.