Algorithm agility
Migration without losing security
Crypto agility is the ability to replace cryptographic mechanisms while preserving required protection and service continuity. Start with an inventory of algorithms, library versions, keys, data lifetimes, peer capabilities and owners. An upgrade is not just a name change: ciphertext formats, verification keys, parameters and compliance requirements can change.
Select by requirements
AES-GCM can benefit from hardware acceleration; ChaCha20-Poly1305 can be a useful software-oriented option depending on hardware and library. Benchmark the actual supported environment; performance does not establish security or policy approval. SHA-2 and SHA-3 are distinct hash families, and Ed25519 is a signature scheme, not an encryption algorithm. A compliance requirement may constrain otherwise sound options. Use documented providers and policy-approved profiles.
Plan a controlled transition
In a fictional archive, profile P1 is approved for legacy reading until a review deadline, while P2 is approved for new writes. Inventory records identify owners, formats and key dependencies. Rehearse reading authorized legacy records, rewriting through the reviewed new profile, checking recovery and monitoring failures. After the approved retirement date, stop P1 operations unless a separately governed recovery procedure applies. This is a policy scenario, not an envelope design.
Fail closed rather than downgrade
Unknown profile identifiers, missing keys and failed authentication must not silently trigger a weaker fallback. Distinguish approved legacy support from automatic downgrade. Use library implementations for constant-time-sensitive operations and avoid homemade primitives, tag truncation, secret-dependent logging or custom negotiation. Recheck release notes, provider support and security advisories before approving a version.
Build a migration checklist
Use the synthetic profile decisions in the lab. For each read or write, predict allow or deny using the stated policy and authentication status. Record owner, compatibility tests, migration deadline, recovery evidence and remaining risk. A passing test vector shows one known operation works; it is not proof of implementation security, deployment readiness or certification.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Algorithm agility — knowledge check
Apply cryptographic library principles to fictional scenarios.
What is the first useful step in migration?
Unknown profile received. What is the safe response?
What establishes actual acceleration benefit?
A successful known vector proves what?
Who defines legacy-read deadline?