liveBook · Manning

Base64

Base64 is a binary-to-text encoding scheme that represents arbitrary bytes using a fixed 64-character alphabet.

How 7 Manning books explain it

Spring Security in Action, Second Edition

Base64 encoding represents arbitrary binary data as characters from a fixed 64-symbol alphabet and provides no confidentiality.

How it is used
Supports convenient transfer of credentials in HTTP Basic headers and JSON components in non-opaque tokens.
How deep it goes
Explains encoding, header placement, command-line construction, and confidentiality limits without detailing the encoding algorithm.
Examples
Demonstrates shell encoding, curl authentication, Authorization headers, and Base64-encoded JWT components.
What you can do after
Apply Base64 with command-line tools to construct HTTP Basic headers and recognize readable token data.

Read how Spring Security in Action, Second Edition explains Base64 →

Grokking Relational Database Design

Base64 is an encoding standard that represents binary data as ASCII characters.

How it is used
Represents binary password hashes as printable ASCII strings for database storage.
How deep it goes
Explains the encoding purpose and resulting length, but does not detail Base64’s conversion algorithm.
Examples
Uses a 40-byte bcrypt result encoded into 60 bytes and stored in CHAR(60).
What you can do after
Apply Base64 when storing binary hash output in a character column and resize the password column accordingly.

Read how Grokking Relational Database Design explains Base64 →

Cyber Threat Hunting

Base64 encoding represents binary or textual data as a sequence of printable characters using a 64-character alphabet.

How it is used
Supports threat hunting by turning suspicious encoded web requests and PowerShell commands into readable investigative evidence.
How deep it goes
Demonstrates extraction, URL normalization, decoding, and interpretation, without explaining Base64’s encoding algorithm.
Examples
Uses project-plan.php query strings, decoded UNIX commands, and a PowerShell -enc command associated with Dropbox network traffic.
What you can do after
Diagnose/debug with it by decoding suspicious values and correlating their contents with web, process, and network evidence.

Read how Cyber Threat Hunting explains Base64 →

Data Analysis with LLMs

Base64 encoding is a binary-to-text encoding scheme that represents binary data using a restricted set of printable characters.

How it is used
Prepares locally stored images and video frames for inclusion in GPT-4o prompts.
How deep it goes
Defines the 64-character encoding and three-byte-to-four-character grouping, then demonstrates Python encoding and UTF-8 conversion.
Examples
Uses private pictures, person-tagging comparisons, and JPEG video frames as encoding scenarios.
What you can do after
Apply Python’s base64 library to encode image bytes, then decode the result as UTF-8 for a prompt.

Read how Data Analysis with LLMs explains Base64 →

Kubernetes in Action, Second Edition

Base64 encoding represents binary or textual data as printable characters without providing confidentiality.

How it is used
Represents binary values in Kubernetes YAML and JSON manifests and carries Secret values through API objects.
How deep it goes
Explains manifest encoding, decoding during container injection, and the distinction from encryption without detailing the encoding algorithm.
Examples
Uses Secret data, Secret stringData, ConfigMap binaryData, and kubectl-generated manifests containing binary files.
What you can do after
Apply it via kubectl by recognizing encoded manifest values and distinguishing readable text from binary data.

Read how Kubernetes in Action, Second Edition explains Base64 →

The Design of Web APIs, Second Edition

Base64 is a binary-to-text encoding that represents arbitrary bytes using a restricted set of ASCII characters.

How it is used
Enables consumers to send file content as text inside JSON API requests alongside related data.
How deep it goes
Compares JSON embedding with multipart uploads and gives schema annotations, without detailing the encoding algorithm.
Examples
Uses account-application documents and a PNG account icon to illustrate Base64 file content.
What you can do after
Apply it via JSON Schema by specifying contentMediaType and contentEncoding for a Base64-encoded file property.

Read how The Design of Web APIs, Second Edition explains Base64 →

Logs and Telemetry

Base64 encoding represents binary or textual data as ASCII characters using a 64-character alphabet.

How it is used
Carries HTTP Basic authentication credentials in an authorization header for an HTTP output.
How deep it goes
Shows the credential representation and verification step, but does not explain the encoding algorithm or decoding process.
Examples
Uses a username and password joined by a colon, displayed as a Basic authorization value in WireMock console output.
What you can do after
Evaluate an authorization value with base64encode.org and recognize why HTTPS matters when transmitting credentials.

Read how Logs and Telemetry explains Base64 →

Also covered in

What to know first

Related concepts

Questions about Base64

What is Base64?

Base64 is a binary-to-text encoding scheme that represents arbitrary bytes using a fixed 64-character alphabet.

Which Manning books explain Base64?

Spring Security in Action, Second Edition, Grokking Relational Database Design, Cyber Threat Hunting, Data Analysis with LLMs, Kubernetes in Action, Second Edition, The Design of Web APIs, Second Edition and Logs and Telemetry.

What should I know before learning Base64?

Manning books that teach Base64 usually introduce binary data, JSON, YAML and RSA first.

What is the difference between Base64 and encryption?

Base64 is a binary-to-text encoding scheme that represents arbitrary bytes using a fixed 64-character alphabet. Encryption is the cryptographic transformation of readable data into ciphertext that requires appropriate decryption information to recover the original data.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.