Cryptographic Concepts and the Life Cycle
Cryptography protects confidentiality, integrity, authenticity and nonrepudiation. This lesson introduces the vocabulary of cryptography and the life cycle of algorithms and keys.
Learning outcomes
After completing this lesson, you will be able to:
- Define core cryptographic terms such as key space, confusion and diffusion.
- Explain the cryptographic life cycle and crypto agility.
- Identify which security services each technique provides.
Core vocabulary
Plaintext is readable data; ciphertext is its encrypted form. A cipher or algorithm transforms one into the other using a key. Kerckhoffs's principle states that a system should remain secure even if everything about it except the key is public, which is why modern algorithms are published and analysed openly.
Ciphers combine substitution (replacing symbols) and transposition (rearranging them) to achieve confusion (hiding the relationship between key and ciphertext) and diffusion (spreading the influence of each plaintext bit across the ciphertext). The work factor is the effort needed to break a system, and the key space is the number of possible keys (2n for an n-bit key). A nonce or initialisation vector adds randomness so that the same plaintext encrypts differently each time. The one-time pad is theoretically unbreakable when the key is truly random, as long as the message, used once and kept secret, but it is impractical for most uses.
Confusion and diffusion explain why modern ciphers resist analysis. In a simple substitution cipher, each plaintext letter always becomes the same ciphertext letter, so patterns in the language survive encryption and can be counted. A modern block cipher such as AES applies many rounds of substitution and permutation, so that changing a single bit of the plaintext or the key changes roughly half the bits of the ciphertext. This behaviour, called the avalanche effect, means that similar plaintexts produce unrelated ciphertexts and that the ciphertext gives no useful clue about the key.
Key space shows why key length matters. A 56-bit key has 256, about 72 quadrillion, possible values, which specialised hardware searched in days in the late 1990s. A 128-bit key has 2128 values; even a computer that tested a trillion trillion keys per second would need millions of years on average. Each added bit doubles the work, so the jump from 56 to 128 bits is not about twice as strong but about 272 times as strong.
Ciphers come in two families. A block cipher encrypts fixed-size blocks, such as AES with 128-bit blocks, and needs a mode of operation to handle longer messages. A stream cipher generates a keystream that is combined bit by bit with the plaintext, which suits continuous data such as voice or network traffic. Both are symmetric; the difference is in how they process data.
Cryptographic vocabulary
The cryptographic life cycle
Algorithms and keys have a life cycle. Algorithms are selected based on the protection needed, standards (for example NIST recommendations and FIPS 140-3 validated modules), performance and how long the data must stay protected. As cryptanalysis and computing power advance, algorithms move from acceptable to deprecated to disallowed: DES and 3DES, RC4, MD5 and SHA-1 are no longer acceptable for new protection, and NIST plans to retire SHA-1 entirely by 2030.
Keys are generated, distributed, used for a defined cryptoperiod, rotated, archived if needed and destroyed. Crypto agility, designing systems so that algorithms and key sizes can be replaced without redesign, makes these transitions, including the move to post-quantum algorithms, much easier.
The life cycle is driven by the protection period of the data, not only by today's threats. If a document must stay confidential for 20 years, the algorithm and key length chosen today must be expected to resist attack for 20 years. Data signed today may need its signature to be verifiable for decades as well, for example on contracts or land records, which is why archives sometimes re-sign or timestamp records with newer algorithms before the old ones weaken.
Retiring an algorithm is usually harder than choosing one, because it is embedded in many places: protocols, stored data, devices and partner systems. A practical example is the move away from SHA-1 for certificate signatures. Organisations first had to find every system that issued or accepted SHA-1 certificates, then upgrade software that could not handle SHA-2, replace certificates and finally configure systems to reject SHA-1. Systems designed with crypto agility made that change through configuration; others required software rewrites. A cryptographic inventory, recording which algorithms and keys are used where, is the starting point for any such transition.
The following diagram shows the stages an algorithm passes through.

Planning for algorithm change
What cryptography provides
Different techniques provide different services. The following table summarises which techniques provide which security services.
| Service | Provided by |
|---|---|
| Confidentiality | Symmetric encryption (bulk data), asymmetric encryption (small data, keys) |
| Integrity | Hash functions, MACs, digital signatures, authenticated encryption |
| Authentication of origin | MACs (between key holders), digital signatures |
| Nonrepudiation | Digital signatures only |
| Key establishment | Diffie-Hellman, ECDH, RSA key transport, ML-KEM |
Services of a hash
Long-lived secrets
A government agency encrypts records that must stay confidential for 30 years. It currently exchanges keys using RSA-2048. What should the security architect consider?
Data intercepted today could be stored and decrypted later if a large quantum computer breaks RSA ("harvest now, decrypt later"). For a 30-year confidentiality requirement, the architect should plan migration of key establishment to a post-quantum algorithm such as ML-KEM, often in a hybrid mode with a classical algorithm during transition, keep AES-256 for bulk encryption and build crypto agility into the system.
What does Kerckhoffs's principle state?
Show answer
A cryptosystem should remain secure even if everything except the key is public.
Exam Tips
Remember for the exam
- Security should rest on the secrecy of the key, not the algorithm.
- Plan algorithm and key replacement before they are broken.
- Only digital signatures provide nonrepudiation.