Concepts / Encryption and certificates

Encryption and certificates

Encoding and decoding

Also called URL encoding

Rewriting bytes as safe text by a public, keyless recipe — so it always decodes straight back and protects nothing.

Encoding is not encryption
Encoding is not encryption

Base64 rewrites three bytes as four text characters by a public table. Anyone can decode it, because no key is involved.

Encoding rewrites bytes as safe text by a public recipe with no key, so anyone reverses it. Base64 turns every three bytes into four characters from A-Z a-z 0-9 + /, padded with =; hex writes each byte as two digits; URL-encoding writes unsafe characters as % and two hex digits. base64 -d gives the exact bytes back. Unlike encryption it hides nothing: Authorization: Basic carries the password in base64.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab