Cryptographic key
A cryptographic key is a value supplied to a cryptographic algorithm to control operations such as encryption, decryption, signing, authentication, or verification.
Software Security for Developers
A secret key is confidential cryptographic material shared by authorized parties to compute or verify keyed security values.
- How it is used
- Uses shared secrets to authenticate messages, protect data, sign tokens, and support secure service-to-service or network communication.
- How deep it goes
- Explains keyed verification, storage risks, and Java implementations, while deferring the full key-agreement problem to public-key mechanisms.
- Examples
- Demonstrates refunds.json HMAC validation, AES-GCM encryption, Nimbus JWS signing, and JWE encryption and decryption.
- What you can do after
- Apply it via HMAC, AES-GCM, JWS, or JWE while validating inputs and protecting keys from configuration and code exposure.
Read how Software Security for Developers explains cryptographic key →
Kubernetes in Action, Second Edition
A Secret is a Kubernetes API resource for storing sensitive data such as credentials, tokens, or keys.
- How it is used
- Stores sensitive application values separately from ConfigMaps and supplies them to containers, image pulls, or TLS termination.
- How deep it goes
- Explains fields, creation, environment injection, and security limits; defers file projection to the treatment of volumes.
- Examples
- Uses kubectl-created credentials, a secretKeyRef environment variable, a private-registry pull Secret, and an Ingress TLS certificate.
- What you can do after
- Apply it via kubectl and pod manifests to supply sensitive values while recognizing encoding, access, and rotation risks.
Read how Kubernetes in Action, Second Edition explains cryptographic key →
Hacking Cryptography
A value that controls cryptographic operations and is shared with or retained by authorized participants according to the security scheme.
- How it is used
- Uses keys to enforce confidentiality by allowing intended participants to encrypt and decrypt while excluding eavesdroppers.
- How deep it goes
- Explains symmetric-key behavior, uniform generation, XOR reversibility, and RC4 key recovery, but does not detail modern key-management procedures.
- Examples
- Uses XOR truth tables, symmetric encryption diagrams, biased random keys, and RC4-based WEP traffic attacks.
- What you can do after
- Understand how shared keys control symmetric encryption, why randomness matters, and how weak stream-cipher use can expose keys.
Real-World Cryptography
A cryptographic key is secret or public information supplied to a cryptographic algorithm to control its operation.
- How it is used
- Uses secret information to control cryptographic algorithms while keeping the algorithms available for open scrutiny.
- How deep it goes
- Explains secrecy, threat consequences, and open evaluation, but stops short of key-generation or key-management procedures.
- Examples
- Uses intercepted website messages, leaked keys, unauthorized decryption, ciphertext leakage, and AES’s NIST competition as examples.
- What you can do after
- Evaluate cryptographic designs by identifying secret-key exposure, unauthorized decryption, ciphertext leakage, and reliance on obscurity.
Read how Real-World Cryptography explains cryptographic key →
Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform
A secret is sensitive information, such as a password, token, or cryptographic key, whose disclosure could enable unauthorized access.
- How it is used
- Protects infrastructure automation, resource configuration, and delivery pipelines from credential disclosure and unnecessary attack surface.
- How deep it goes
- Explains definition, storage, variable passing, rotation, failure impact, and pipeline exposure, but does not detail a specific secrets-manager implementation.
- Examples
- Uses GCP service credentials, SSL certificates, SSH keys, API tokens, passwords, and a leaked root database password in pipeline logs.
- What you can do after
- Operate/configure infrastructure automation by externalizing secrets, rotating certificates, and reducing credential exposure in delivery pipelines.
Also covered in
- Elliptic Curve Cryptography for Developers
- Grokking Web Application Security
- Grokking Algorithms, Second Edition
- Data Pipelines with Apache Airflow, Second Edition
- Practical Automation with PowerShell: Effective scripting from the console to the cloud
- Learn Haskell by Example
- Acing the CCNA Exam: Volume 2 Advanced Networking and Security
- Julia as a Second Language
- Fundamentals of CybersecurityIn early access (MEAP)
- Azure Security
- DuckDB in Action
- Kubernetes for Developers
What to know first
- data integrityData integrity is the property of data being accurate, complete, consistent, and valid throughout its storage, processing, and transfer.
- encryptionEncryption is the cryptographic transformation of readable data into ciphertext that requires appropriate decryption information to recover the original data.
- hash functionA hash function is a deterministic function that maps input data to a hash value, typically of fixed size, for uses such as lookup, indexing, comparison, or integrity checking.
- private keyA private key is secret cryptographic key material associated with a corresponding public key and used for operations such as signing or decryption.
Related concepts
- AESused by · AES is a standardized symmetric block cipher that encrypts and decrypts data in 128-bit blocks using 128-, 192-, or 256-bit keys.
- elliptic-curve diffie-hellmanproduced by · Elliptic-curve Diffie-Hellman is a public-key key-agreement method in which parties derive a shared secret through elliptic-curve point operations.
- encryptionused by · Encryption is the cryptographic transformation of readable data into ciphertext that requires appropriate decryption information to recover the original data.
- symmetric encryptionused by · 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.
- configmapalternative to · A ConfigMap is a Kubernetes API resource that stores non-confidential configuration data as key-value pairs for use by workloads and other cluster components.
- configurationuses · Configuration is a set of settings or structural choices that specifies how a system, application, or component is organized or operates.
Questions about cryptographic key
What is cryptographic key?
A cryptographic key is a value supplied to a cryptographic algorithm to control operations such as encryption, decryption, signing, authentication, or verification.
Which Manning books explain cryptographic key?
Software Security for Developers, Kubernetes in Action, Second Edition, Hacking Cryptography, Real-World Cryptography and Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform.
What should I know before learning cryptographic key?
Manning books that teach cryptographic key usually introduce data integrity, encryption, hash function and private key first.
What is the difference between cryptographic key and configmap?
A cryptographic key is a value supplied to a cryptographic algorithm to control operations such as encryption, decryption, signing, authentication, or verification. A ConfigMap is a Kubernetes API resource that stores non-confidential configuration data as key-value pairs for use by workloads and other cluster components.
What is cryptographic key also called?
Cryptographic key is also called secret key.
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.




