Skip to main content
← SproulTech

Crypto agility for small software teams

Crypto agility means you can change a cryptographic algorithm without rebuilding your product. SproulTech does this work for small teams: one engineer, Nate Sproul, finds every hash, signature and encryption call in your code, sorts each by what breaks if it changes, and routes them through one helper per primitive so a swap is a planned change.

By Nate Sproul, software engineer · Updated December 2, 2026

What is crypto agility?

Crypto agility is being able to swap one cryptographic algorithm for another without a rewrite. Some call it cryptographic agility; it is the same thing. The test is simple: if a standards body, a vendor or a customer told you to change an algorithm next month, how long would it take you to even list where it is used?

For most small codebases the answer is "we don't know". The algorithm name is scattered across cookie signing, API keys, stored ids, signed documents and webhook checks. Nobody wrote the list, so the first week of any change is spent making it.

Agility is mostly that list plus one rule per use: which algorithm to make new values with, and which to accept when checking old ones. The algorithm itself is the small part.

Which algorithms are on a clock: hashes, signatures or encryption?

Only one family has a dated deadline in the sources we read. Public-key cryptography is the one: the algorithms behind RSA, ECDSA and EdDSA signatures, and public-key key exchange. NIST's report on the transition to post-quantum cryptography, IR 8547 (final, October 2026), says: "NIST will deprecate quantum-vulnerable public-key cryptography after 2030 and disallow its use under NIST standards and guidelines after 2035." Its Table 2 lists RSA, ECDSA and EdDSA as "Deprecated after 2030" and "Disallowed after 2035".

That date is about a future machine, not a present break. It applies to US federal standards and guidelines, which many contracts and audits then borrow.

Hashes are not on that clock. NIST's hash function policy page says: "Currently there is no need to transition applications from SHA-2 to SHA-3." SHA-256 is one of the SHA-2 functions. The one hash with a dated retirement is SHA-1; if you still use it for anything that matters, that is the hash job to schedule. For the full method, see the hash page at /hash-algorithm-migration.

Symmetric encryption (AES and its relatives) is mostly off the clock too. NIST IR 8547 says symmetric standards are less vulnerable to quantum attacks and "NIST does not expect to need to transition away from these standards as part of the PQC migration." The exception is the few at the 112-bit security level, which it says "will be disallowed in 2030". AES-128, AES-192 and AES-256 are above that line. Source: https://nvlpubs.nist.gov/nistpubs/ir/2026/NIST.IR.8547.pdf (sections 2.1.3 and 4.1.3).

Two things follow. Signatures and key exchange are the family to inventory first, because they have a date. And the date is a planning date for a migration that takes time, which is the reason to build the list now.

  • Public-key deadline, read November 30, 2026: https://nvlpubs.nist.gov/nistpubs/ir/2026/NIST.IR.8547.pdf
  • Hash policy, read November 30, 2026: https://csrc.nist.gov/projects/hash-functions/nist-policy-on-hash-functions

How does a crypto agility project go?

Five steps, in this order. Each one ends with something you can check before the next starts.

  • Inventory. Find every place the code hashes, signs, verifies, encrypts or decrypts. Record what each one protects, how long its output lives, and what stores or reads it later. This is the CBOM idea (a cryptographic bill of materials) scaled to a team of one to five.
  • One helper per primitive. Hashes go through one function, signatures through one, encryption through one. Each use gets a name and a rule: the algorithm that makes new values, and the list it accepts.
  • Accept both. Ship the code that verifies old and new values first, to every server. Nothing signs with the new algorithm yet, so nothing can fail.
  • Flip. Start making new values with the new algorithm. Old values keep verifying, so nobody is signed out and no stored row is orphaned.
  • Retire the legacy. Take the old algorithm off the accept list once nothing made with it can still arrive: ten minutes for a sign-in token, a year for a year-long cookie, never for an unsubscribe link with no expiry.

Why not find and replace the algorithm name?

Because a throwaway cookie signature and a stored database key look identical in the code, and only one of them survives the change.

Swaps also fail quietly. Two different digests can be the same length, so a column constraint or a regular expression passes either one. Nothing throws. The lookup comes back empty, and you hear about it from a customer.

Signatures and encryption add their own traps: keys and signatures that are stored or already sent out, a signer in another language outside the repo, and ciphertext on disk that only the old algorithm can open. The inventory is where these show up, before they are a bug.

What have you done this on?

On sproultech.com itself, and so far nowhere else. The hash work is done: the site's code had 41 hashing call sites across seven categories. Signatures, stored keys and document hashes now go through one helper with a named rule each. The vendor-dictated ones, the password hashes and the build-script cache names were left alone on purpose. The hash write-up is the hash migration page, and the whole job is written up as a case study. If your worry is RSA specifically, see the RSA exit plan.

Hashes: 14 free purposes now mint SHA3-256 and still accept SHA-256, so nothing signed before the switch stops verifying. The pinned purposes are unchanged.

Signatures and encryption: the Telnyx Ed25519 webhook check and the AES-256-GCM sealing of calendar tokens now go through named-purpose helpers in src/lib/crypto. Tokens sealed before the change still open, and a golden test checks that. ChaCha20-Poly1305 is ready in the helper but not active.

Time taken: 3 hours 13 minutes of wall-clock time, from the first helper commit (2026-11-30 14:14) to the last live commit (2026-11-30 17:27), read from git timestamps. It was done by one person working with AI coding agents. Price: quoted per project after the inventory.

Is there a scanner that finds the algorithms?

Yes. SproulTech has a scanner that lists hash call sites in JavaScript/TypeScript, Python, Go and Java code and can fail a build when a forbidden algorithm shows up outside the places allowed to use it. It finds hashes, signatures, encryption and key derivation. It is line-based pattern matching, not a parser. It can miss aliased imports and algorithms passed in through a variable, so a clean run means "no known pattern found", not proof. Run on our own site's src folder it lists 56 call sites across 860 files: 34 hash, 12 public-key, 5 symmetric and 5 key-derivation. The scanner is called Cupel and is public at https://github.com/1Aa1k/cupel (MIT). Run it with npx github:1Aa1k/cupel --check, which fails a CI run on any crypto call outside the allowed folders.

Other open-source scanners exist, and they are the right place to start a larger inventory. The gap we found when we read them on November 30, 2026 is on the swap side: they report what they find, and the one write path we saw is a key-size bump. Changing an algorithm changes what other code receives, which is why it takes the sorting step above.

CISA names the detection problem itself. Its strategy paper on discovery and inventory tools says: "it is not clear if these tools will be able to detect the embedded algorithms used within software packages". A scan is a start. A person still reads the results.

  • CISA strategy paper, read November 30, 2026: https://www.cisa.gov/sites/default/files/2024-09/Strategy-for-Migrating-to-Automated-PQC-Discovery-and-Inventory-Tools.pdf

Questions

What is crypto agility?
Crypto agility is being able to change a cryptographic algorithm, such as a hash, a signature scheme or an encryption method, without rebuilding the product. In practice it means knowing every place an algorithm is used and routing each use through one helper with a rule: what to make new values with, and what to accept when checking old ones.
What is PQC migration, and does my small team need one?
PQC means post-quantum cryptography. NIST approved three standards for it on 13 August 2024 (FIPS 203, 204 and 205): "The Secretary of Commerce has approved three Federal Information Processing Standards (FIPS) for post-quantum cryptography." (https://csrc.nist.gov/news/2024/postquantum-cryptography-fips-approved). NIST IR 8547 then says it will deprecate quantum-vulnerable public-key cryptography after 2030 and disallow it after 2035 (https://nvlpubs.nist.gov/nistpubs/ir/2026/NIST.IR.8547.pdf). If your product signs things with RSA, ECDSA or EdDSA, or exchanges keys with public-key methods, you have a migration to plan. If it only uses SHA-256 hashing, NIST says there is no need to move.
What is a cryptographic inventory?
A cryptographic inventory is a list of every place your systems use cryptography: what algorithm, for what purpose, and what depends on the output. CISA, NSA and NIST's joint factsheet says: "Organizations should create a cryptographic inventory that offers visibility into how the organization leverages cryptography in its IT and OT systems." (https://www.cisa.gov/sites/default/files/2023-08/Quantum%20Readiness_Final_CLEAR_508c%20%283%29.pdf). For a small team the inventory is a table of call sites, not a product.
What is a CBOM?
A CBOM, or cryptographic bill of materials, is a machine-readable list of the cryptography in a piece of software, in the same spirit as an SBOM for dependencies. It is one way to write down an inventory. You do not need one to start: a table of call sites, their purpose and their lifetime does the same job for a small codebase.
Is SHA-256 broken, or on the same deadline as RSA?
No on both. NIST's hash function policy page says "Currently there is no need to transition applications from SHA-2 to SHA-3", and SHA-256 is part of SHA-2 (https://csrc.nist.gov/projects/hash-functions/nist-policy-on-hash-functions). The 2030 and 2035 dates in IR 8547 are for quantum-vulnerable public-key algorithms, not hashes. See /hash-algorithm-migration for the hash-specific page.
Has AI or quantum computing broken encryption?
Nothing on this page says so, and we do not claim it. Some researchers and press reports say AI or quantum computers may weaken certain algorithms in future. That is the reason standards bodies set transition dates. Treat any single headline as a prompt to check your inventory, not as proof that something has already failed.
How long does it take and what does it cost?
Price: quoted per project after the inventory. Time on SproulTech's own site: 3 hours 13 minutes of wall-clock time from the first helper commit to the last live commit, by one person with AI coding agents (the case study has the detail). The number of stored values and outside signers moves the size of the job more than lines of code do.

Send a few lines about the codebase and where it hashes, signs or encrypts things. The reply comes from the engineer who would do the work.

nate@sproultech.com