liveBook · Manning

Symmetric encryption

Also called symmetric cryptography

Symmetric encryption is a cryptographic technique in which the same shared secret key, or equivalent shared secret material, is used to encrypt and decrypt data.

How 7 Manning books explain it

Real-World Cryptography

Symmetric encryption is an encryption technique in which the same secret key, or equivalent shared secret, is used for encryption and decryption.

How it is used
Protects message confidentiality when communicating parties already share a secret key.
How deep it goes
Explains plaintext, ciphertext, encryption, decryption, shared keys, key exchange, and the limits of unauthenticated encryption.
Examples
Uses Alice and Bob’s letter exchange, ENCRYPT and DECRYPT functions, and an AES example encrypting “hello.”
What you can do after
Evaluate when shared-key encryption provides confidentiality and recognize why secure applications require authentication.

Read how Real-World Cryptography explains symmetric encryption →

Grokking Relational Database Design

Symmetric encryption is reversible encryption that uses the same secret key for encryption and decryption.

How it is used
Protects sensitive database information that applications must later retrieve in its original form.
How deep it goes
Defines reversibility, explains shared keys and algorithms, and names variants without detailing implementation procedures.
Examples
Uses saved credit-card information in an online store as the central example.
What you can do after
Apply it to encrypt and later decrypt sensitive values stored for repeated application use.

Read how Grokking Relational Database Design explains symmetric encryption →

Hacking Cryptography

Cryptography in which communicating parties use the same secret key or shared secret for corresponding cryptographic operations.

How it is used
Protects confidentiality efficiently when communicating parties already possess the same secret key.
How deep it goes
Explains the shared-key model, OTP tradeoff, cipher categories, Kerckhoff’s principle, and key exchange, but not cipher internals.
Examples
Uses an encryption/decryption flow, a one-time-pad comparison, and MAC-protected API and password-reset messages.
What you can do after
Evaluate symmetric encryption’s confidentiality, performance, key-material requirements, and secret-key distribution risks.

Read how Hacking Cryptography explains symmetric encryption →

Fundamentals of Cybersecurity

Symmetric encryption is a cryptographic technique that uses the same secret key to transform plaintext into ciphertext and recover the plaintext.

How it is used
Protects data at rest and in communications when efficient confidentiality is needed.
How deep it goes
Explains plaintext, ciphertext, shared keys, distribution risks, scalability, performance, and common algorithms.
Examples
Uses an Alice-and-Bob message, a locked-box analogy, employee key counts, and AES, DES, and 3DES comparisons.
What you can do after
Evaluate symmetric encryption for efficient data protection while identifying key-confidentiality and scalability challenges.

Read how Fundamentals of Cybersecurity explains symmetric encryption →

Software Security for Developers

Symmetric key cryptography uses the same secret key, or closely related shared keys, to protect and recover data.

How it is used
Protects application data in storage and communications, including cloud services, databases, disks, and TLS.
How deep it goes
Explains plaintext, ciphertext, keys, AES modes, IVs, authentication tags, and practical configuration risks.
Examples
Uses AES block encryption, ECB and CBC failure modes, AES-GCM, IVs, authentication tags, and Java Cipher.
What you can do after
Apply AES-GCM through a developer-friendly library while avoiding insecure modes and IV reuse.

Read how Software Security for Developers explains symmetric encryption →

Server-Side WebAssembly

Symmetric encryption is encryption in which the same secret key is used for both encryption and decryption.

How it is used
Protects sensitive database values while enabling authorized storage and retrieval through Wasm user-defined functions.
How deep it goes
Explains plaintext, ciphertext, shared keys, Base64 conversion, 256-bit configuration, and graceful failure handling.
Examples
Demonstrates Rust encrypt and decrypt functions backed by Magic Crypt and exposed through libSQL bindings.
What you can do after
Build database encryption and decryption functions with Rust, Magic Crypt, Wasm, and libSQL bindings.

Read how Server-Side WebAssembly explains symmetric encryption →

Data Pipelines with Apache Airflow, Second Edition

Symmetric encryption is encryption that uses the same secret key for encryption and decryption.

How it is used
Protects Airflow passwords, connections, and variables at rest, and contributes session protection within HTTPS.
How deep it goes
Explains the shared-key model, Fernet configuration, storage flow, and key-loss risks without detailing cipher internals.
Examples
Uses Airflow secret storage, Fernet.generate_key(), environment configuration, protected key files, and HTTPS session keys.
What you can do after
Operate/configure Airflow secret encryption and explain how HTTPS combines symmetric and asymmetric encryption.

Read how Data Pipelines with Apache Airflow, Second Edition explains symmetric encryption →

Also covered in

What to know first

Related concepts

Questions about symmetric encryption

What is symmetric encryption?

Symmetric encryption is a cryptographic technique in which the same shared secret key, or equivalent shared secret material, is used to encrypt and decrypt data.

Which Manning books explain symmetric encryption?

Real-World Cryptography, Grokking Relational Database Design, Hacking Cryptography, Fundamentals of Cybersecurity, Software Security for Developers, Server-Side WebAssembly and Data Pipelines with Apache Airflow, Second Edition.

What should I know before learning symmetric encryption?

Manning books that teach symmetric encryption usually introduce encryption, authorization, Base64 and ciphertext first.

What is the difference between symmetric encryption and public key cryptography?

Symmetric encryption is a cryptographic technique in which the same shared secret key, or equivalent shared secret material, is used to encrypt and decrypt data. Public-key cryptography is cryptography based on mathematically related public and private keys that support complementary operations such as encryption and decryption or signing and verification.

What kinds of symmetric encryption are there?

Kinds of symmetric encryption include AES.

What is symmetric encryption a kind of?

Symmetric encryption is a kind of encryption. 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.