encoding

Turning data into a different representation so it can be stored or transmitted, following a public rule that anyone can reverse.

In more detail

Examples include text encodings that map characters to bytes, Base64 for sending binary data as text, and Punycode for international domain names. Encoding needs no key, so it hides nothing, which is how it differs from encryption. Attackers sometimes encode data to slip it past filters that look for plain patterns.

Examples

"password".encode() gives b'password'
domain.encode("idna").decode()

Related terms

Taught in

References