The December 2, 2026 statement names no algorithm and sets no date. With so little to go on, the only reasonable preparation is to make your application able to change its cryptography painlessly. This is called crypto-agility. Here is a nine-point checklist, with the precise settings for a Ruby on Rails application. In broad terms it applies to any other framework.
Crypto-agility: what are we talking about?
An application is crypto-agile when three conditions are met: you know where it uses cryptography, the algorithms are chosen through configuration and not hard-coded, and the keys can be rotated without interrupting the service.
What is exposed, and what is less so
Not all cryptography is in the same position. The post-quantum migration first targets public-key cryptography: RSA, elliptic curves, key exchange. NIST plans to deprecate it after 2030 and disallow it after 2035 in its standards. Conversely, NIST considers that symmetric algorithms such as AES-256 and hash functions such as SHA-256 will remain secure for a very long time, and does not plan to replace them.
One caveat: the December 2 statement does not say which part of cryptography is affected by the recent discoveries. The list below therefore assumes nothing; it puts you in a position to react.
The 9-point checklist
1. The versions of the foundation
This is the point that conditions all the others: new algorithms only arrive in maintained versions.
- Ruby: the 4.0 and 3.4 branches are maintained; 3.3 only receives security fixes until March 31, 2027; 3.2 and earlier are end of life (ruby-lang.org).
- Rails: each series receives security fixes for two years. In early December 2026, the 8.1 series is the only one still within that window (Rails maintenance policy).
- OpenSSL: only the 3.5 (maintained until April 2030), 4.0 and 4.1 series are supported. The 1.1.1 and 3.0 series, still very widespread, no longer are outside paid support (openssl-library.org).
ruby -v
bin/rails -v
ruby -ropenssl -e 'puts OpenSSL::OPENSSL_LIBRARY_VERSION'
2. The TLS connection
Check that the server accepts TLS 1.3 and, if possible, the hybrid post-quantum key exchange. From a machine with OpenSSL 3.5 or later, the following command explicitly requests the hybrid group (OpenSSL documentation):
openssl s_client -connect exemple.fr:443 -tls1_3 -groups X25519MLKEM768 -brief
If the connection fails with this group and succeeds without it, the server does not yet offer the hybrid exchange. Cloudflare Radar also offers an online test. On the Rails side, config.force_ssl = true must be enabled in production: it redirects to HTTPS, marks cookies as secure and enables HSTS (Rails documentation).
3. Certificates
Note the issuing authority, the key type (RSA or ECDSA) and the expiration date, and check that renewal is automatic. There is nothing to change today: no public authority issues post-quantum certificates yet, and Let's Encrypt is aiming for 2027. Automation is what will let you follow along effortlessly.
4. Cookies and sessions
Rails encrypts its cookies with AES-256-GCM by default, a symmetric algorithm. Two settings deserve a check in an application that has gone through several versions (configuration guide):
config.active_support.key_generator_hash_digest_class: SHA256 with the Rails 7.0 defaults, SHA1 before.config.action_dispatch.signed_cookie_digest: SHA1 by default, still today. Moving to SHA256 is an explicit choice, to be made with a rotation so that users are not logged out (security guide).
config.action_dispatch.signed_cookie_digest = "SHA256"
config.action_dispatch.cookies_rotations.tap do |cookies|
cookies.rotate :signed, digest: "SHA1"
end
This rotation mechanism is a good example of crypto-agility: you change algorithms without interrupting the service.
5. JWT tokens
Record the signature algorithm of each token. HS256 relies on a shared secret; RS256 and ES256 rely on RSA and elliptic curves, and therefore on the family the migration targets. The ruby-jwt gem does not offer a post-quantum algorithm to date. So what matters today:
- the algorithm is declared in a single place, and passed explicitly when decoding;
- the keys can be rotated (key identifier, several keys accepted during the transition);
- the lifetime of the tokens is short.
6. Webhook signatures
Most services sign their webhooks with an HMAC. Stripe, for example, uses HMAC-SHA256 with a secret specific to each endpoint. This is symmetric cryptography. Check three things: the signature is actually verified, the comparison is done in constant time, and the secret can be changed without redeploying.
7. Database encryption
Active Record Encryption encrypts attributes with AES-GCM and a 256-bit key. To check:
- the keys are in Rails encrypted credentials or in environment variables, never in the repository;
config.active_record.encryption.hash_digest_classis set to SHA256 (the default since Rails 7.1, SHA1 before);- rotation is understood:
primary_keyaccepts a list of keys, the last one encrypts, all of them decrypt. Deterministic encryption, however, does not allow rotation; - the old encryption gems still present in the
Gemfile.lockare identified.
8. Hard-coded algorithms and keys
A search through the code is enough to draw up a first inventory:
grep -rnE "OpenSSL::|Digest::(MD5|SHA1)|MessageEncryptor|MessageVerifier|JWT\.(encode|decode)" app lib config
Brakeman flags weak hashes (MD5, SHA1) used in a sensitive context. To our knowledge, there is no tool that automatically produces a complete cryptographic inventory for Ruby, along the lines of the CycloneDX CBOM available for other languages. The inventory therefore remains a matter of reading the code and the configuration.
9. Data with long-term confidentiality
List the data that will still need to be secret in ten years: health data, identity documents, trade secrets, contracts. For each one, note where it travels, where it is stored and how long it is kept. This is the data the “harvest now, decrypt later” scenario concerns, and the first defense is not to keep what you no longer need.
Ranking the results
| Priority | Examples |
|---|---|
| Do now | End-of-life version of Ruby, Rails or OpenSSL; key or secret in the repository; HTTPS not forced; MD5 or SHA1 in a sensitive context |
| Plan | Moving signed cookies to SHA256; key rotation; centralizing the choice of algorithms; automatic certificate renewal |
| Watch | Hybrid key exchange at the hosting provider; post-quantum certificates; post-quantum algorithms in JWT libraries |
What this list does not do
- It does not make the application “post-quantum”. It makes it ready to become so through updates.
- It does not replace a penetration test or a full security audit.
- It is not an invitation to write your own cryptography. Post-quantum algorithms are only just arriving in libraries; using them directly in the code of a business application is premature.
Our position
On an application we take over, the first finding is rarely cryptographic: most often it is a version of Ruby or Rails that is no longer maintained. That is why we handle these points as part of a Rails audit, which records the versions and the uses of encryption, then a Rails upgrade when one is needed. Web application security best practices remain the foundation.
FAQ
What is crypto-agility?
It is an application's ability to change its encryption algorithm, signature algorithm or key without being rewritten. A crypto-agile application knows where it uses cryptography, chooses its algorithms through configuration and knows how to rotate its keys.
Should I add post-quantum cryptography to my application right now?
No, not in the application code. Post-quantum algorithms arrive through the lower layers: TLS, OpenSSL, the hosting provider. The useful work today is to keep those layers up to date and to make the application able to change algorithms when the time comes.
Is the AES-256 encryption of my data under threat?
According to NIST, no: symmetric algorithms such as AES-256 and hash functions such as SHA-256 are far less exposed than public-key cryptography, and NIST does not plan to replace them as part of the post-quantum migration.
How long does a crypto-agility check take?
It depends on the size of the application and its age. On an up-to-date Ruby on Rails application, most of the points can be checked in the configuration. On an old application, the first finding is often that it needs to be upgraded first.
Which tools should I use to take the inventory?
For a Ruby on Rails application, to our knowledge there is no tool that automatically draws up the cryptographic inventory. You combine a search through the code, Brakeman, which flags weak hashes such as MD5 and SHA1, and a reading of the configuration.
Sources
- Ruby, maintained branches and Rails, maintenance policy
- OpenSSL, supported versions and s_client documentation
- NIST, post-quantum cryptography FAQs and NIST IR 8547
- Rails, configuration guide, security guide and Active Record Encryption
- ruby-jwt, Stripe, webhook signatures, Brakeman and CycloneDX CBOM