The Right Choice for Post-Quantum Cryptography: An Enterprise Encryption Guide

The quantum computing threat is imminent, and developers need to migrate to post-quantum cryptography in stages according to NIST standards.
Once quantum computers become practical, Shor's algorithm will break RSA and elliptic curve cryptography, and "harvest now, decrypt later" attacks make migration urgent. NIST has selected CRYSTALS-Kyber (key encapsulation) and CRYSTALS-Dilithium (digital signatures) as the main post-quantum standards, with SPHINCS+ as a conservative alternative. During the transition period, hybrid mode should be adopted to run classical and post-quantum algorithms simultaneously to diversify risk. Migration needs to go through four phases: cryptographic asset inventory, prioritization, testing and validation, and phased deployment, while guarding against misconceptions such as "data isn't important" and "wait until the standards mature." Developers can start today by checking TLS library support, participating in open source testing, and designing replaceable cryptographic architectures.

The threat that quantum computing poses to existing encryption systems is no longer a theoretical exercise. When a sufficiently powerful quantum computer arrives, RSA and elliptic curve cryptography will lose their security overnight, and encrypted data intercepted by attackers today could be decrypted tomorrow—this is the so-called "harvest now, decrypt later" attack model. Faced with this reality, developers and technical decision-makers need a clear action framework, not vague warnings.
Why Post-Quantum Cryptography Matters Now
The security of traditional public-key cryptography rests on the computational complexity of mathematical hard problems. RSA relies on integer factorization, and elliptic curves rely on the discrete logarithm problem. Running Shor's algorithm on a quantum computer can solve both classes of problems in polynomial time, directly undermining the foundations of existing public key infrastructure.
The situation with symmetric encryption is somewhat better. Grover's algorithm provides a quadratic speedup for symmetric key search, but this can be effectively countered by doubling key lengths—AES-256 remains secure in the quantum era. The problem is mainly concentrated in three areas: key exchange, digital signatures, and public-key encryption.
The urgency of migration comes from two factors. First, the lifecycle of encryption systems is typically years or even decades, and systems deployed today need to remain secure for the next decade. Second, data has long-term sensitivity—the confidentiality period for medical records, national security communications, intellectual property, and other information far exceeds the expected lifespan of current encryption algorithms. If we wait until quantum computers become practical before acting, the data that has already been intercepted will be irretrievable.
Shor's algorithm, proposed by mathematician Peter Shor in 1994, is one of the most influential algorithms in quantum computing. Its core capability lies in using the quantum Fourier transform to solve integer factorization and discrete logarithm problems in polynomial time. This means that a 2048-bit RSA key that would take classical computers thousands of years to factor could theoretically be broken by a quantum computer in hours or days. The threat of Shor's algorithm is fundamental because it is not a minor patch to existing algorithms, but directly destroys the computational hardness assumptions of an entire class of mathematical problems—and almost all widely deployed public-key algorithms, including RSA, Diffie-Hellman, and elliptic curve cryptography, depend on these assumptions. Therefore, the goal of post-quantum cryptography (PQC) is to find new mathematical foundations that do not rely on integer factorization and discrete logarithms.
Post-Quantum Cryptographic Algorithms: NIST's Choices
After years of screening, the U.S. National Institute of Standards and Technology (NIST) has finalized its first set of post-quantum cryptographic standards. These algorithms are based on different types of mathematical problems, providing diverse security foundations.
Key Encapsulation Mechanisms (KEM)
CRYSTALS-Kyber (now standardized as ML-KEM) is a key encapsulation mechanism based on lattice cryptography and is also NIST's primary selected KEM scheme. The hardness of lattice problems has not been effectively broken under either classical or quantum computational models, and Kyber also performs excellently—moderate key sizes, fast computation, and suitability for most application scenarios.
CRYSTALS-Dilithium (ML-DSA) is the primary digital signature scheme, also based on lattice problems. Its signature size is larger than traditional RSA signatures, but within an acceptable range, and verification speed is fast.
Key Encapsulation Mechanism (KEM) is a cryptographic primitive used in modern cryptographic protocols for securely negotiating session keys. Unlike traditional key exchange protocols (such as Diffie-Hellman), KEM works as follows: the sender uses the recipient's public key to generate a random symmetric key and its corresponding ciphertext encapsulation through an encapsulation algorithm; the recipient uses the private key to decapsulate the ciphertext and recover the same symmetric key. KEM's interface is simpler and its security proofs are clearer, which is why NIST uniformly adopted the KEM framework to replace traditional key exchange schemes in post-quantum standardization. In TLS 1.3, KEM is already the standard abstract interface for key exchange, which allows post-quantum KEMs (such as ML-KEM) to be integrated into existing protocols relatively smoothly.
Hash-Based Signature Schemes
SPHINCS+ (SLH-DSA) provides a signature scheme based on hash functions, whose security relies only on the collision resistance of hash functions—an extremely conservative security assumption. The cost is very large signature sizes (several KB to tens of KB), as well as slower signing and verification speeds. However, for scenarios such as firmware signing and root certificates that are insensitive to performance but demand extremely high security, SPHINCS+ is a reliable choice.
Eliminated Candidates
Not all algorithms that reached the final round withstood scrutiny. SIKE was once regarded as one of the most promising candidates, but in 2022 it was broken by an ordinary laptop in about an hour. This case reminds us that the security of cryptographic algorithms requires sufficiently long analysis and attack testing, and that deploying unverified schemes prematurely is dangerous.
SIKE (Supersingular Isogeny Key Encapsulation) was based on the supersingular elliptic curve isogeny problem and was once favored in IoT and bandwidth-constrained scenarios due to its extremely small key sizes (public keys of only a few hundred bytes). However, in 2022, Wouter Castryck and Thomas Decru of KU Leuven in Belgium used a mathematical breakthrough on classical computers—reducing the isogeny problem to an easier-to-solve path problem—to recover SIKE's private key in about an hour. This attack did not require a quantum computer at all, exposing deep flaws in SIKE's security proof. This incident profoundly demonstrates that even if an algorithm passes preliminary cryptanalysis, it may still collapse under deeper mathematical scrutiny. This is also the fundamental reason why NIST insists on multi-round, multi-year public review processes.
Hybrid Mode: Best Practices for the Transition Period
Migrating from classical cryptography to post-quantum cryptography cannot be a simple "one-click switch." During the transition period, hybrid mode is the safest strategy—using both classical and post-quantum algorithms simultaneously, so that the system is secure only when both are secure.
The logic of this approach is straightforward: if a post-quantum algorithm is later found to have weaknesses, the classical algorithm still provides protection; if quantum computers arrive earlier than expected, the post-quantum algorithm fills the gap. TLS 1.3 already supports this hybrid key exchange at the protocol level, and browsers such as Chrome and Firefox have begun deploying it.
Implementing hybrid mode requires attention to several details. First, ensure that the combination of classical and post-quantum algorithms does not introduce new vulnerabilities—simple concatenation is not always secure, and formally verified combination schemes are needed. Second, pay attention to performance impact: hybrid mode handshakes carry more data, which may affect latency-sensitive applications.
Migration Roadmap: From Assessment to Deployment
Post-quantum migration is a systems engineering effort that needs to be advanced in stages.
Phase 1: Cryptographic asset inventory. Map out all places in the system where encryption is used—TLS connections, code signing, document encryption, VPNs, SSH keys, database encryption, and more. Understand the algorithms used in each scenario, key lengths, data confidentiality periods, and system lifecycles. This step is often more time-consuming than expected, because encryption is often "hidden" in dependency libraries and frameworks.
Phase 2: Prioritization. Not all systems need immediate migration. Prioritize systems with long data confidentiality periods, long system lifecycles, or large exposure surfaces. Long-term stored sensitive data is the top priority—it is the direct target of "harvest now, decrypt later" attacks.
Phase 3: Testing and validation. Test the compatibility of post-quantum algorithms with existing systems in isolated environments. Focus on performance overhead, interoperability, and protocol compatibility. Pay special attention to support for hardware components such as hardware security modules (HSMs) and trusted platform modules (TPMs)—firmware updates for these devices often lag behind software.
Phase 4: Phased deployment. Start with internal systems and non-critical paths, then gradually expand to user-facing services. Maintain hybrid mode until the security of post-quantum algorithms has been sufficiently verified.
Cryptographic agility is a key but often overlooked architectural principle in post-quantum migration. It refers to a system's ability to quickly replace underlying cryptographic algorithms without large-scale refactoring. Achieving cryptographic agility means decoupling algorithm selection from business logic, using standardized abstract interfaces (such as PKCS#11 and JCE Provider), avoiding hard-coded algorithm identifiers in protocols, and ensuring that key and certificate formats are extensible. Systems lacking cryptographic agility will be forced into costly full-scale rework when faced with sudden events such as the breaking of SIKE. Therefore, when assessing existing systems, cryptographic agility itself should be an important evaluation dimension.
Easily Overlooked Pitfalls
Several common misconceptions in post-quantum migration deserve vigilance.
"Our data isn't important" — Attackers do not always collect data selectively. Large-scale collection is inexpensive, and the value of the data may only become apparent years later.
"Let's wait until the standards are fully mature" — The NIST standards have already been published, and migration itself takes years. The cost of waiting is an extended window of data exposure.
"Just swap out the crypto library" — Post-quantum algorithms have larger keys and signatures, which may affect protocol design, storage formats, and network transmission. This is not a simple library replacement, but an adjustment at the protocol level.
"Quantum computers are still far away" — No one can accurately predict the timeline for practical quantum computers. But the cycle of cryptographic migration is measured in decades, so starting now is not early.
What Developers Can Do Today
For frontline developers, post-quantum migration can begin with concrete actions. Check whether the TLS libraries you use support hybrid key exchange—OpenSSL 3.2+ and BoringSSL already provide relevant support. Follow the progress of the open source projects you depend on in the post-quantum direction, and participate in testing and feedback. When designing new systems, make the replaceability of cryptographic algorithms one of your architectural principles—avoid hard-coding algorithm choices deep within the system.
The history of cryptography has repeatedly proven that threats that seem distant often become reality when people least expect them. Post-quantum migration is not a multiple-choice question, but a question of time.
One-line Summary
With the quantum computing threat looming, developers need to migrate to post-quantum cryptography in stages according to NIST standards.
Paragraph Summary
Once quantum computers become practical, Shor's algorithm will break RSA and elliptic curve cryptography, and "harvest now, decrypt later" attacks make migration urgent. NIST has selected CRYSTALS-Kyber (key encapsulation) and CRYSTALS-Dilithium (digital signatures) as the main post-quantum standards, with SPHINCS+ as a conservative alternative. During the transition period, hybrid mode should be adopted to run classical and post-quantum algorithms simultaneously to diversify risk. Migration needs to go through four phases: cryptographic asset inventory, prioritization, testing and validation, and phased deployment, while guarding against misconceptions such as "data isn't important" and "wait until the standards mature." Developers can start today by checking TLS library support, participating in open source testing, and designing replaceable cryptographic architectures.
Related articles

Chain of Thought Isn't Just for AI: How Humans Can Use CoT to Improve Thinking Quality
Chain of Thought isn't just a prompt trick for large models. Starting from a Hacker News discussion, this article analyzes why CoT works for human thinking too, breaks down actionable ways to transfer it, and highlights the key differences between human CoT and machine CoT.
Cloudflare Teams Up with OpenAI: Closi…
Cloudflare Teams Up with OpenAI: Closing the Loop from Vulnerability Discovery to Defense with AI
Cloudflare uses OpenAI Daybreak to investigate security vulnerabilities and generate reviewable remediation plans, while developers use Codex to boost coding efficiency and quality.

Orca Multi-Agent Orchestration in Practice: A Guide to Parallel Collaboration with Claude and Codex
Orca is Stable AI's free open-source agent workbench supporting 34 agents like Claude Code and Codex in parallel. Learn its Git worktree isolation, multi-model orchestration, and mobile management.