Engineering

AI or Quantum Computing May Crack Encryption: How to Prepare and Become Cryptographically Agile

Cryptographic agility, or crypto-agility, is the ability to change the encryption your systems use without rebuilding those systems. If an algorithm is weakened tomorrow, an agile organisation changes a setting and rotates its keys. Everyone else starts a project.

It matters now for two reasons. Quantum computers are expected to break RSA and elliptic-curve cryptography, and regulators have set migration dates on that basis. Separately, AI systems have started producing serious mathematical results, including in cryptanalysis, so a weakness could arrive sooner and from a direction nobody planned for.

You cannot predict which algorithm fails or when. You can decide how long it takes you to respond. This guide has two parts. Part 1 covers what you need to identify: where your cryptography is, what to record about each use of it, and how to rank what you find. Part 2 covers becoming cryptographically agile: the engineering, supplier and governance changes that let you replace an algorithm quickly.

Part 1: What you need to identify

Step 1: Find your cryptography

You cannot change what you have not found, and most organisations have never listed where they use encryption. The output of this step is a cryptographic inventory, sometimes called a cryptographic bill of materials (CBOM): every place an algorithm, key or certificate is in use, and who owns it.

Where to lookWhat you are looking for
Web and API trafficTLS versions, cipher suites, certificate key types and sizes
CertificatesIssuer, algorithm, expiry, where each one is installed
Application codeCalls to crypto libraries, hard-coded algorithm names and key sizes
Data at restDatabase, disk and backup encryption, and where the keys live
Identity and accessSSO, tokens (JWT signing), SSH keys, VPNs
Code signing and updatesHow software and firmware updates are signed and verified
HardwareHSMs, smart cards, payment terminals, IoT and embedded devices
Third partiesCloud services, SaaS, payment processors, banking connections

For each entry in the inventory, record:

The last two fields are the ones most inventories leave out, and they decide how long a migration takes.

Use tools for the first pass: network scanners for TLS, certificate discovery, and static analysis over your codebases. Then ask the system owners, because scanners miss batch jobs, archives and anything a supplier runs for you.

Record the inventory somewhere it will be kept current. A spreadsheet done once is out of date within a quarter.

Step 2: Rank what you found

The inventory will be longer than you can fix at once, so score each entry on three questions.

Long-lived, exposed and hard to change goes to the top of the list. Also mark anything already weak, such as RSA below 2048 bits, SHA-1 or old TLS versions. Those need fixing now whatever happens next.

Part 2: Becoming cryptographically agile

Part 1 tells you what you have. The five steps in this part change how your systems are built and run, so that replacing an algorithm becomes a routine operation.

Step 3: Stop hard-coding algorithms

This is the engineering change that creates agility. Most systems are rigid because the algorithm choice is written into the application code, the data format or the hardware.

Apply this to new systems immediately. Retrofit existing ones in the order set by Step 2.

Step 4: Automate keys and certificates

An organisation that renews certificates by hand once a year cannot replace all of them in a week. Rotation has to be routine before an emergency.

Step 5: Adopt the new algorithms, in hybrid first

NIST finalised its first post-quantum standards in August 2024. They are in the major libraries, browsers and cloud platforms now.

Start with hybrid mode, which runs a classical algorithm and a post-quantum one together so that an attacker has to break both. The post-quantum schemes are newer and less tested than RSA, and hybrid covers you if one of them is weakened.

Do not standardise on a single mathematical family. If every system you run depends on lattice-based schemes, one result takes all of them out. Keep a hash-based option available for your most important signatures.

The UK's National Cyber Security Centre sets three target dates: discovery and an initial plan by 2028, the highest-priority migrations by 2031, and full migration by 2035. Treat those as the latest acceptable dates. They were set for the quantum threat and could be overtaken by events.

Step 6: Bring your suppliers with you

For most businesses, the larger part of their cryptography runs inside products and services bought from someone else. Your agility is limited by theirs.

Ask each significant supplier, in writing:

  1. Which cryptographic algorithms does your product use, and where?
  2. Do you support post-quantum or hybrid algorithms today? If not, when?
  3. Can algorithms be changed by configuration or update, without replacing the product?
  4. How quickly could you replace an algorithm that was found to be broken?
  5. Will you provide a cryptographic bill of materials?

Put the answers into procurement. New contracts and renewals should require support for the NIST post-quantum standards, a commitment to change algorithms within a stated period, and notice of any cryptographic change. A supplier with no answer to question 4 is a risk to record and manage.

Step 7: Prove it, and give it an owner

Agility that has never been tested is an assumption. Run a drill: pick one non-critical system, change its algorithm end to end, and time it. Include key rotation, re-encryption of stored data, and rollback. Whatever blocked you is your real to-do list.

Then make it permanent:

Where to start: the first 90 days

Days 1 to 30. Name the owner. Scan your public-facing TLS and your certificates. Retire anything already weak. Send the five questions to your ten most important suppliers.

Days 31 to 60. Extend the inventory to application code and data at rest. Score every entry using Step 2. Turn on hybrid post-quantum key exchange where your web servers, CDN and cloud provider already support it.

Days 61 to 90. Agree the policy. Start the shared crypto library for new development. Run the first drill on one low-risk system and write up what blocked you.

At the end of 90 days you will not be crypto-agile. You will know where you stand, the quick fixes will be done, and you will have a plan based on evidence.

Mistakes to avoid

Sources