{"id":80693,"date":"2026-12-06T14:52:15","date_gmt":"2026-12-06T14:52:15","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=80693"},"modified":"2026-12-06T14:52:17","modified_gmt":"2026-12-06T14:52:17","slug":"80693-2","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/80693-2\/","title":{"rendered":""},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">Quantum Cryptography: The Complete Tutorial Guide<\/h1>\n\n\n\n<p class=\"lead wp-block-paragraph\">\n  Understand quantum key distribution, BB84, quantum-safe encryption and post-quantum cryptography through clear explanations, original diagrams and practical labs.\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"630\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/illustration-of-a-quantum-state-orbiting-a-cryptog.jpeg\" alt=\"Illustration of a quantum state orbiting a cryptographic key, with the title Quantum Cryptography.\" class=\"wp-image-80694\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/illustration-of-a-quantum-state-orbiting-a-cryptog.jpeg 1200w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/illustration-of-a-quantum-state-orbiting-a-cryptog-300x158.jpeg 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/illustration-of-a-quantum-state-orbiting-a-cryptog-1024x538.jpeg 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/illustration-of-a-quantum-state-orbiting-a-cryptog-768x403.jpeg 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/illustration-of-a-quantum-state-orbiting-a-cryptog-820x430.jpeg 820w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"figure-caption wp-block-paragraph\">\n  Featured image \u2014 Quantum cryptography, QKD and post-quantum security.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Imagine sending a sensitive encryption key without trusting that an eavesdropper can never copy a signal. Quantum cryptography changes the rules: it uses carefully prepared quantum states and the statistics of their measurements to establish secrets. It is a fascinating departure from conventional cryptography, but it is not magic, and it does not replace the rest of a secure system.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  This tutorial starts with qubits and measurement, builds the BB84 quantum key distribution (QKD) protocol step by step, examines the realities of quantum networks, and then introduces post-quantum cryptography (PQC): the practical software-based path for protecting existing systems from future quantum computers. The two disciplines complement one another but solve different problems. [1, 2]\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What you will learn<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><br>    How quantum states, measurement and the no-cloning theorem enable QKD.<br>  <\/li>\n\n\n\n<li><br>    How to calculate a quantum bit error rate (QBER) and understand what it does and does not prove.<br>  <\/li>\n\n\n\n<li><br>    How to run a BB84 simulation and real ML-KEM and ML-DSA demonstrations using Python and OpenSSL.<br>  <\/li>\n\n\n\n<li><br>    How to evaluate QKD equipment, modernize TLS and PKI, and plan a risk-based migration.<br>  <\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Audience: students, developers, security engineers, cloud architects, DevOps professionals and technical leaders. No quantum hardware or advanced mathematics is required for the labs.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. What is quantum cryptography?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Quantum cryptography is the use of quantum-mechanical properties to achieve cryptographic objectives. Its best-known application, quantum key distribution, allows two remote parties (traditionally Alice and Bob) to generate matching secret keys while placing a mathematical bound on an adversary\u2019s information, provided the protocol and its implementation satisfy a defined security model. [1, 2, 5]\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  A QKD system does not typically send your files or passwords as photons. It produces keying material. An ordinary cryptographic system then uses that material to protect messages. An attacker (Eve) can interfere with communication, but a correctly designed QKD protocol can refuse to release a key when observed statistics are inconsistent with its security requirements.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Quantum cryptography vs. post-quantum cryptography<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><strong>Dimension<\/strong>\n<\/p><\/th><th><p><strong>Quantum cryptography \/ QKD<\/strong>\n<\/p><\/th><th><p><strong>Post-quantum cryptography<\/strong>\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  Foundation\n<\/p><\/td><td><p>\n  Quantum state preparation, measurement and security proofs\n<\/p><\/td><td><p>\n  Mathematical problems believed hard for quantum and classical computers\n<\/p><\/td><\/tr><tr><td><p>\n  Hardware\n<\/p><\/td><td><p>\n  Specialized optical or quantum equipment for QKD\n<\/p><\/td><td><p>\n  Conventional CPUs, software, and compatible hardware security modules\n<\/p><\/td><\/tr><tr><td><p>\n  Primary purpose\n<\/p><\/td><td><p>\n  Generate shared secret key material\n<\/p><\/td><td><p>\n  Key establishment and digital signatures\n<\/p><\/td><\/tr><tr><td><p>\n  Security model\n<\/p><\/td><td><p>\n  Information-theoretic under specified assumptions; devices matter\n<\/p><\/td><td><p>\n  Computational security based on studied mathematical assumptions\n<\/p><\/td><\/tr><tr><td><p>\n  Deployment\n<\/p><\/td><td><p>\n  Selected optical links and specialized networks\n<\/p><\/td><td><p>\n  Internet protocols, cloud services, devices, PKI, software supply chains\n<\/p><\/td><\/tr><tr><td><p>\n  Authentication\n<\/p><\/td><td><p>\n  Requires an authenticated classical channel\n<\/p><\/td><td><p>\n  Signatures and authenticated protocols can establish identity\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Why the quantum threat matters<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Traditional RSA relies on integer factorization; Diffie\u2013Hellman and elliptic-curve cryptography rely on discrete logarithms. Shor\u2019s algorithm can solve these problems efficiently on a sufficiently capable, fault-tolerant quantum computer. No reliable date exists for when a cryptanalytically relevant quantum computer will be available. The threat is nevertheless relevant now: adversaries can record encrypted traffic today and attempt to decrypt it later.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Symmetric cryptography is affected differently. Grover\u2019s algorithm gives a theoretical quadratic speedup for exhaustive search, not an instant break. Quantum resource costs and implementation constraints matter. Well-configured AES-256 and suitable hash and authentication choices provide substantial conservative margins; do not confuse a symmetric-key search model with the impact of Shor\u2019s algorithm on public-key systems. [19]\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Quantum mechanics for cryptographers<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Qubits, bases and probability<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  A classical bit is 0 or 1. A pure qubit can be represented as |\u03c8\u27e9 = \u03b1|0\u27e9 + \u03b2|1\u27e9, where \u03b1 and \u03b2 are complex amplitudes and |\u03b1|\u00b2 + |\u03b2|\u00b2 = 1. A measurement in the computational (Z) basis returns 0 with probability |\u03b1|\u00b2 and 1 with probability |\u03b2|\u00b2. The outcome depends on the chosen measurement basis; a single measurement cannot reveal an arbitrary unknown state.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  BB84 uses two mutually unbiased bases: the Z basis {|0\u27e9, |1\u27e9} and the X basis {|+\u27e9, |\u2212\u27e9}. In the X basis, |+\u27e9 = (|0\u27e9 + |1\u27e9)\/\u221a2 and |\u2212\u27e9 = (|0\u27e9 \u2212 |1\u27e9)\/\u221a2. Measuring an X-basis state in the Z basis gives either bit with equal probability, and vice versa. Polarization is one convenient physical encoding; phase or time-bin encoding is also possible.\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"435\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/four-photon-polarization-states-horizontal-and-ve.png\" alt=\"Four photon polarization states: horizontal and vertical in the Z basis; diagonal and anti-diagonal in the X basis.\" class=\"wp-image-80695\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/four-photon-polarization-states-horizontal-and-ve.png 1200w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/four-photon-polarization-states-horizontal-and-ve-300x109.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/four-photon-polarization-states-horizontal-and-ve-1024x371.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/four-photon-polarization-states-horizontal-and-ve-768x278.png 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"figure-caption wp-block-paragraph\">\n  Figure 1 \u2014 Example polarization encoding of the four BB84 states.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The three principles that make QKD possible<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><br>    Measurement: measuring an unknown state in an incompatible basis produces an unpredictable outcome and changes the prepared state in the ideal projective model.<br>  <\/li>\n\n\n\n<li><br>    No-cloning theorem: there is no universal physical operation that perfectly copies every unknown quantum state. Known orthogonal states can be distinguished and copied; the theorem concerns arbitrary unknown states.<br>  <\/li>\n\n\n\n<li><br>    Entanglement: joint quantum states can exhibit correlations beyond classical explanations. Local outcomes remain random, so entanglement cannot send controllable information faster than light.<br>  <\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">A quick probability exercise<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Alice prepares |+\u27e9. Bob measures in Z. Both outcomes are equally likely. If Bob instead measures in X, he gets bit 0 with probability 1 in the ideal system. This difference is the mechanism behind BB84\u2019s basis sifting and error detection.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. How BB84 quantum key distribution works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Introduced by Charles Bennett and Gilles Brassard in 1984, BB84 is a prepare-and-measure QKD protocol. Its original publication is an important starting point for understanding the field. Modern implementations add detailed security analysis, authentication, finite-size corrections and hardware-specific countermeasures. [2, 5]\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"560\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/eight-bb84-stages-prepare-transmit-measure-sif.png\" alt=\"Eight BB84 stages: prepare, transmit, measure, sift, estimate QBER, reconcile, amplify and deliver, with an abort if unsafe.\" class=\"wp-image-80696\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/eight-bb84-stages-prepare-transmit-measure-sif.png 1200w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/eight-bb84-stages-prepare-transmit-measure-sif-300x140.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/eight-bb84-stages-prepare-transmit-measure-sif-1024x478.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/eight-bb84-stages-prepare-transmit-measure-sif-768x358.png 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"figure-caption wp-block-paragraph\">\n  Figure 2 \u2014 BB84 processing pipeline; only verified, privacy-amplified bits are delivered.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step-by-step protocol<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><br>  Alice selects a random bit and a random basis for each signal, then prepares and sends the corresponding quantum state.<br><\/li>\n\n\n\n<li><br>  Bob independently chooses a basis for each received signal and records a measurement result. Lost or invalid detections are handled according to the protocol.<br><\/li>\n\n\n\n<li><br>  Alice and Bob communicate their bases over an authenticated classical channel and retain eligible positions measured in matching bases. With uniform choices, about half of ideal detections survive.<br><\/li>\n\n\n\n<li><br>  They disclose a random subset of eligible results to estimate error rates. Disclosed bits are discarded; security analysis also accounts for basis-specific and finite-size statistics.<br><\/li>\n\n\n\n<li><br>  They reconcile discrepancies, verify that their strings match, bound information leaked to Eve and compress the reconciled string using privacy amplification.<br><\/li>\n\n\n\n<li><br>  They release a key only if the security and correctness parameters, authentication and key-length requirements are satisfied. Otherwise they abort.<br><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">4. A worked BB84 example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Consider eight ideal transmissions. The following table is illustrative rather than randomly generated; Bob\u2019s measurements in mismatched bases are arbitrary. Only matching bases are retained. The convention is Z0 = |0\u27e9, Z1 = |1\u27e9, X0 = |+\u27e9 and X1 = |\u2212\u27e9.\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><strong>Position<\/strong>\n<\/p><\/th><th><p><strong>Alice bit<\/strong>\n<\/p><\/th><th><p><strong>Alice basis<\/strong>\n<\/p><\/th><th><p><strong>Bob basis<\/strong>\n<\/p><\/th><th><p><strong>Bob bit<\/strong>\n<\/p><\/th><th><p><strong>Decision<\/strong>\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  1\n<\/p><\/td><td><p>\n  0\n<\/p><\/td><td><p>\n  Z\n<\/p><\/td><td><p>\n  Z\n<\/p><\/td><td><p>\n  0\n<\/p><\/td><td><p>\n  Keep\n<\/p><\/td><\/tr><tr><td><p>\n  2\n<\/p><\/td><td><p>\n  1\n<\/p><\/td><td><p>\n  X\n<\/p><\/td><td><p>\n  Z\n<\/p><\/td><td><p>\n  0\n<\/p><\/td><td><p>\n  Discard\n<\/p><\/td><\/tr><tr><td><p>\n  3\n<\/p><\/td><td><p>\n  1\n<\/p><\/td><td><p>\n  Z\n<\/p><\/td><td><p>\n  Z\n<\/p><\/td><td><p>\n  1\n<\/p><\/td><td><p>\n  Keep\n<\/p><\/td><\/tr><tr><td><p>\n  4\n<\/p><\/td><td><p>\n  0\n<\/p><\/td><td><p>\n  X\n<\/p><\/td><td><p>\n  X\n<\/p><\/td><td><p>\n  0\n<\/p><\/td><td><p>\n  Keep\n<\/p><\/td><\/tr><tr><td><p>\n  5\n<\/p><\/td><td><p>\n  1\n<\/p><\/td><td><p>\n  X\n<\/p><\/td><td><p>\n  Z\n<\/p><\/td><td><p>\n  1\n<\/p><\/td><td><p>\n  Discard\n<\/p><\/td><\/tr><tr><td><p>\n  6\n<\/p><\/td><td><p>\n  0\n<\/p><\/td><td><p>\n  Z\n<\/p><\/td><td><p>\n  X\n<\/p><\/td><td><p>\n  1\n<\/p><\/td><td><p>\n  Discard\n<\/p><\/td><\/tr><tr><td><p>\n  7\n<\/p><\/td><td><p>\n  1\n<\/p><\/td><td><p>\n  X\n<\/p><\/td><td><p>\n  X\n<\/p><\/td><td><p>\n  1\n<\/p><\/td><td><p>\n  Keep\n<\/p><\/td><\/tr><tr><td><p>\n  8\n<\/p><\/td><td><p>\n  0\n<\/p><\/td><td><p>\n  Z\n<\/p><\/td><td><p>\n  Z\n<\/p><\/td><td><p>\n  0\n<\/p><\/td><td><p>\n  Keep\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Sifted positions are 1, 3, 4, 7 and 8. Alice and Bob both have the sequence 0 1 0 1 0. Suppose they disclose positions 3 and 7 to test agreement. The observed errors are 0 out of 2, so their sample QBER is 0%. The remaining candidate bits are 0 0 0. Neither the tiny sample nor the remaining three bits constitute a usable secret key. A real system would reject such a small block.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Quantum bit error rate (QBER)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  QBER = number of disagreed sample bits \/ number of compared sample bits. For example, 30 mismatches in 1,000 tested sifted bits yield 3% QBER. The metric detects statistical disturbance, but optical misalignment, noise and detector imperfections can also cause errors. A nonzero QBER is not proof that someone attacked the link.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why intercept-and-resend produces about 25% errors<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  In the simplest full intercept-and-resend model, Eve independently chooses Z or X, measures each signal and prepares a new state for Bob. Conditional on Alice and Bob using the same basis, Eve chooses the wrong basis half the time. If Eve chose the wrong basis, Bob obtains a wrong bit half the time. The ideal sifted-bit error probability is therefore 1\/2 \u00d7 1\/2 = 1\/4, or 25%. If Eve intercepts only a fraction f, the ideal contribution is f\/4 (without other noise).\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  A real adversary need not use this simple strategy. Security proofs must cover a broader attack model; low QBER by itself is not sufficient to prove secrecy.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5. From raw bits to cryptographically secure keys<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Sifting, reconciliation and privacy amplification<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Raw measurement results are not application keys. Sifting removes incompatible or ineligible measurements. Information reconciliation (for example, Cascade or an LDPC-code-based method) corrects mismatches while revealing limited parity or syndrome information. Error verification bounds the probability that Alice and Bob have different final strings.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Privacy amplification uses a suitable randomness extractor, often a universal hash family, to compress the partially secret string. Its output length depends on a conservative lower bound on the entropy conditioned on Eve\u2019s quantum and classical information, reconciliation leakage, authentication costs and finite-key security parameters. Merely hashing an arbitrary raw key with SHA-256 does not prove secrecy.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">A useful idealized key-rate calculation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  For ideal, asymptotic single-photon BB84 with symmetric bit and phase error rate Q, a simple one-way secret-fraction lower bound per sifted key bit is r \u2265 1 \u2212 2h\u2082(Q), where h\u2082(q) = \u2212q log\u2082(q) \u2212 (1\u2212q) log\u2082(1\u2212q), taking 0 log\u2082(0) = 0. It crosses zero at about 11%. This is not a universal commercial QKD acceptance threshold. It assumes an idealized security model, efficient error correction and effectively infinite data. [20]\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><strong>QBER<\/strong>\n<\/p><\/th><th><p><strong>Idealized lower bound<\/strong>\n<\/p><\/th><th><p><strong>Interpretation<\/strong>\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  0%\n<\/p><\/td><td><p>\n  1.000\n<\/p><\/td><td><p>\n  No modeled errors; real overheads still apply.\n<\/p><\/td><\/tr><tr><td><p>\n  3%\n<\/p><\/td><td><p>\n  0.611\n<\/p><\/td><td><p>\n  A positive fraction under the stated assumptions.\n<\/p><\/td><\/tr><tr><td><p>\n  5%\n<\/p><\/td><td><p>\n  0.427\n<\/p><\/td><td><p>\n  Less extractable secret material.\n<\/p><\/td><\/tr><tr><td><p>\n  11%\n<\/p><\/td><td><p>\n  \u2248 0\n<\/p><\/td><td><p>\n  Near the zero-secret-fraction boundary.\n<\/p><\/td><\/tr><tr><td><p>\n  25%\n<\/p><\/td><td><p>\n  Negative; clamp to zero\n<\/p><\/td><td><p>\n  No positive bound for this model.\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Security is a system property<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  A composable security statement typically bounds correctness failure and secrecy failure separately; security parameters combine across protocol uses. The authenticated classical channel is essential. Without authentication, Eve can impersonate each endpoint and run independent QKD sessions, defeating the purpose of the key exchange.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Bootstrap authentication can use pre-shared secrets with a suitable information-theoretic MAC, or approved public-key authentication suited to the threat model. Computational authentication and symmetric data encryption have their own assumptions, so the security of the complete system is not automatically information-theoretic.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">6. Quantum cryptography protocols and approaches<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><strong>Protocol \/ approach<\/strong>\n<\/p><\/th><th><p><strong>How it works<\/strong>\n<\/p><\/th><th><p><strong>Security and deployment notes<\/strong>\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  BB84\n<\/p><\/td><td><p>\n  Prepare and measure four states in two bases\n<\/p><\/td><td><p>\n  Canonical introductory protocol; requires practical source and detector modeling.\n<\/p><\/td><\/tr><tr><td><p>\n  B92\n<\/p><\/td><td><p>\n  Two nonorthogonal states encode bits\n<\/p><\/td><td><p>\n  Conceptually simpler signal alphabet; inconclusive outcomes and losses matter.\n<\/p><\/td><\/tr><tr><td><p>\n  E91\n<\/p><\/td><td><p>\n  Measure entangled pairs; use Bell correlations\n<\/p><\/td><td><p>\n  Entanglement-based security reasoning; practical assumptions and loopholes still matter.\n<\/p><\/td><\/tr><tr><td><p>\n  BBM92\n<\/p><\/td><td><p>\n  Entangled pairs with compatible basis measurements\n<\/p><\/td><td><p>\n  Entanglement-based counterpart to BB84; does not inherently require a Bell test.\n<\/p><\/td><\/tr><tr><td><p>\n  Decoy-state QKD\n<\/p><\/td><td><p>\n  Vary source intensity to estimate single-photon contributions\n<\/p><\/td><td><p>\n  Helps bound photon-number-splitting risks in weak coherent pulse implementations.\n<\/p><\/td><\/tr><tr><td><p>\n  MDI-QKD\n<\/p><\/td><td><p>\n  Both endpoints send states to a measurement station\n<\/p><\/td><td><p>\n  Can remove detector-side-channel trust assumptions for that station under its model.\n<\/p><\/td><\/tr><tr><td><p>\n  DI-QKD\n<\/p><\/td><td><p>\n  Use suitable Bell-test statistics to certify secrecy\n<\/p><\/td><td><p>\n  Reduces device assumptions but requires demanding loophole-free conditions.\n<\/p><\/td><\/tr><tr><td><p>\n  CV-QKD\n<\/p><\/td><td><p>\n  Encode information in continuous optical quadratures\n<\/p><\/td><td><p>\n  Uses homodyne or heterodyne detection; security depends on calibration and noise modeling.\n<\/p><\/td><\/tr><tr><td><p>\n  Twin-field QKD\n<\/p><\/td><td><p>\n  Interference of signals at an intermediate station\n<\/p><\/td><td><p>\n  Promising long-distance scaling; demanding phase control and proof assumptions.\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Protocol choice depends on fiber loss, data rate, hardware availability, operating environment, authentication, implementation assurance and key-delivery requirements. E91 and BBM92 are foundational entanglement-based protocols [3, 4]; the practical-security literature covers decoy states and measurement-device-independent techniques in greater depth [5].\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Other quantum cryptographic applications<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Quantum random number generators (QRNGs) can supply entropy by measuring suitable physical processes, but still require entropy assessment, health testing and extraction. Quantum digital signatures, secret sharing, secure delegated quantum computation and quantum position verification are research or specialized application areas with distinct assumptions. Do not confuse these with the classical ML-DSA digital signature algorithm.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">7. Quantum key distribution architecture<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"555\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/two-sites-each-contain-a-qkd-terminal-a-key-manag.png\" alt=\"Two sites each contain a QKD terminal, a key manager and encryptor. A quantum optical link, authenticated classical link and encrypted data path connect them.\" class=\"wp-image-80697\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/two-sites-each-contain-a-qkd-terminal-a-key-manag.png 1200w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/two-sites-each-contain-a-qkd-terminal-a-key-manag-300x139.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/two-sites-each-contain-a-qkd-terminal-a-key-manag-1024x474.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/two-sites-each-contain-a-qkd-terminal-a-key-manag-768x355.png 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"figure-caption wp-block-paragraph\">\n  Figure 3 \u2014 Conceptual QKD system with isolated key management and authenticated communication.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Components and trust boundaries<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><br>    Quantum transmitter and receiver: prepare and measure optical signals; account for loss, timing, polarization or phase drift, detector effects and source characteristics.<br>  <\/li>\n\n\n\n<li><br>    Classical post-processing: authenticates protocol messages, performs sifting and parameter estimation, reconciles errors, verifies keys and extracts secret material.<br>  <\/li>\n\n\n\n<li><br>    Key management service (KMS): binds key IDs to peer identities, access policy, size, freshness, purpose and consumption; protects keys in memory and at rest.<br>  <\/li>\n\n\n\n<li><br>    Encryptors and applications: obtain synchronized keys using authorized interfaces and encrypt ordinary data with an approved authenticated encryption scheme such as AES-GCM, observing nonce uniqueness and key-use limits.<br>  <\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\n  ETSI GS QKD 014 describes a REST key-delivery interface for applications; it does not specify the physical protocol that generates keys. A vendor integration may expose key IDs, available key counts and key sizes, subject to mutual authentication and authorization. [6]\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Scaling beyond one link<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Optical attenuation limits direct transmission; trusted relay nodes can extend a network but introduce trust in every relay that handles key material. Satellite links face weather, visibility, pointing and scheduling constraints. Quantum repeaters aim to distribute entanglement across longer distances without ordinary copy-and-amplify repeaters; they remain technically challenging. Design around measured secret key rate, not headline distance records.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">8. Hands-on lab 1: simulate BB84 with Python<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Tested in Python 3.13.5. Requires only the standard library. Save the following as bb84.py. This is a classical probability model of ideal BB84 with a simple intercept-and-resend model and independent bit-flip noise. It demonstrates statistics, not secure key generation or physical quantum transmission.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1 \u2014 implement the experiment<\/h3>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">from random import Random\ndef simulate(n, eve_fraction, noise, seed=<span class=\"hljs-number\">42<\/span>):\n    rng = Random(seed)  <span class=\"hljs-comment\"># Reproducible, not secure randomness<\/span>\n    def measure(bit, sent_basis, chosen_basis):\n        <span class=\"hljs-keyword\">return<\/span> bit <span class=\"hljs-keyword\">if<\/span> sent_basis == chosen_basis <span class=\"hljs-keyword\">else<\/span> rng.randrange(<span class=\"hljs-number\">2<\/span>)\n    sifted = &#91;]\n    <span class=\"hljs-keyword\">for<\/span> _ in range(n):\n        a, ab, bb = (rng.randrange(<span class=\"hljs-number\">2<\/span>) <span class=\"hljs-keyword\">for<\/span> _ in range(<span class=\"hljs-number\">3<\/span>))\n        bit, basis = a, ab\n        <span class=\"hljs-keyword\">if<\/span> rng.random() &lt; eve_fraction:\n            eb = rng.randrange(<span class=\"hljs-number\">2<\/span>)\n            bit, basis = measure(bit, basis, eb), eb\n        b = measure(bit, basis, bb)\n        <span class=\"hljs-keyword\">if<\/span> rng.random() &lt; noise:\n            b ^= <span class=\"hljs-number\">1<\/span>\n        <span class=\"hljs-keyword\">if<\/span> ab == bb:\n            sifted.append((a, b))\n    rng.shuffle(sifted)\n    sample = sifted&#91;:len(sifted) <span class=\"hljs-comment\">\/\/ 5]<\/span>\n    <span class=\"hljs-keyword\">if<\/span> not sample:\n        raise ValueError(<span class=\"hljs-string\">'Too few sifted bits'<\/span>)\n    qber = sum(a != b <span class=\"hljs-keyword\">for<\/span> a, b in sample) \/ len(sample)\n    <span class=\"hljs-keyword\">return<\/span> len(sifted), len(sample), qber\n<span class=\"hljs-keyword\">for<\/span> fraction, noise in &#91;(<span class=\"hljs-number\">0<\/span>, <span class=\"hljs-number\">0<\/span>), (<span class=\"hljs-number\">0<\/span>, <span class=\"hljs-number\">.02<\/span>), (<span class=\"hljs-number\">.5<\/span>, <span class=\"hljs-number\">0<\/span>), (<span class=\"hljs-number\">1<\/span>, <span class=\"hljs-number\">0<\/span>)]:\n    sifted, sample, qber = simulate(<span class=\"hljs-number\">20000<\/span>, fraction, noise)\n    <span class=\"hljs-keyword\">print<\/span>(f<span class=\"hljs-string\">'Eve={fraction:.0%}, noise={noise:.0%}, '<\/span>\n          f<span class=\"hljs-string\">'sifted={sifted}, sample={sample}, QBER={qber:.2%}'<\/span>)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h3 class=\"wp-block-heading\">Step 2 \u2014 run it locally<\/h3>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css\"><span class=\"hljs-selector-tag\">python3<\/span> <span class=\"hljs-selector-tag\">bb84<\/span><span class=\"hljs-selector-class\">.py<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  The seeded random generator makes the experiment reproducible. It is deliberately not a cryptographic random generator. No final key is generated, no quantum device is used and no real network is contacted.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">9. Analyze the BB84 simulation<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3 \u2014 inspect the tested output<\/h3>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">Eve=0%, noise=0%, sifted=10059, sample=2011, QBER=0.00%\nEve=0%, noise=2%, sifted=10059, sample=2011, QBER=2.34%\nEve=50%, noise=0%, sifted=9922, sample=1984, QBER=12.90%\nEve=100%, noise=0%, sifted=9912, sample=1982, QBER=23.66%<\/code><\/span><\/pre>\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"410\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/bar-chart-of-tested-qber-0-00-2-34-12-90-and.png\" alt=\"Bar chart of tested QBER: 0.00%, 2.34%, 12.90% and 23.66% across no interference, 2% noise, half and full interception.\" class=\"wp-image-80698\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/bar-chart-of-tested-qber-0-00-2-34-12-90-and.png 1200w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/bar-chart-of-tested-qber-0-00-2-34-12-90-and-300x103.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/bar-chart-of-tested-qber-0-00-2-34-12-90-and-1024x350.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/bar-chart-of-tested-qber-0-00-2-34-12-90-and-768x262.png 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"figure-caption wp-block-paragraph\">\n  Figure 4 \u2014 Observed QBER values from the executed Python lab.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The sifted count is near 10,000 because the two independent basis choices match about half the time. The sample size is about one-fifth of the sifted count. Finite random sampling explains why 23.66% differs from the theoretical 25%, and why 2.34% differs from the configured 2% noise rate.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4 \u2014 practice and check your understanding<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><br>  Set the number of transmitted states to 200,000. Expect the error estimates to converge toward the theoretical rates, on average.<br><\/li>\n\n\n\n<li><br>  Try Eve fractions of 0.25 and 0.75 with noise set to zero. Expect QBER near 6.25% and 18.75%, respectively.<br><\/li>\n\n\n\n<li><br>  Combine 50% interception with 2% independent bit-flip noise. If the ideal Eve-induced error rate is e = 0.125, the combined expected error rate is e + p \u2212 2ep = 0.14, or 14%.<br><\/li>\n\n\n\n<li><br>  Change the random seed or use several seeds. Observe sampling variation; never use the toy simulation as evidence that a physical QKD system is secure.<br><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\n  For an extension, model photon loss as an independent detection event, then sift only detected signals. An actual QKD analysis must consider whether loss depends on preparation, measurement or adversarial behavior, rather than assuming independent loss.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">10. Post-quantum cryptography (PQC) standards<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  PQC is the classical-computer approach to protecting public-key operations from future quantum attacks. Unlike QKD, it uses no quantum channel. Standardization is essential because algorithm names alone do not determine compatible encodings, approved parameter sets, safe APIs or secure protocol integration.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">NIST standardized algorithms<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><strong>Standard<\/strong>\n<\/p><\/th><th><p><strong>Algorithm \/ family<\/strong>\n<\/p><\/th><th><p><strong>Purpose and status<\/strong>\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  FIPS 203\n<\/p><\/td><td><p>\n  ML-KEM (derived from Kyber); module lattices\n<\/p><\/td><td><p>\n  Key encapsulation; ML-KEM-512, -768 and -1024. Final, August 2024. [7]\n<\/p><\/td><\/tr><tr><td><p>\n  FIPS 204\n<\/p><\/td><td><p>\n  ML-DSA (derived from Dilithium); module lattices\n<\/p><\/td><td><p>\n  Digital signatures; ML-DSA-44, -65 and -87. Final, August 2024. [8]\n<\/p><\/td><\/tr><tr><td><p>\n  FIPS 205\n<\/p><\/td><td><p>\n  SLH-DSA (derived from SPHINCS+); stateless hashes\n<\/p><\/td><td><p>\n  Digital signatures; multiple SHA-2 and SHAKE parameter sets. Final, August 2024. [9]\n<\/p><\/td><\/tr><tr><td><p>\n  Additional work\n<\/p><\/td><td><p>\n  FN-DSA (Falcon-derived) and HQC\n<\/p><\/td><td><p>\n  NIST selected these for standardization; consult the live project for final status before adopting. [10]\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  ML-KEM uses the module learning-with-errors problem. Its three parameter sets are not simply 512-, 768- or 1024-bit security levels; these are algorithm identifiers. ML-DSA offers relatively compact signatures for many PQC applications. SLH-DSA provides an alternative based on hash functions, with different signature-size and performance trade-offs.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Key and signature sizes: why capacity planning matters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><strong>Parameter set<\/strong>\n<\/p><\/th><th><p><strong>Public key (bytes)<\/strong>\n<\/p><\/th><th><p><strong>Ciphertext \/ signature (bytes)<\/strong>\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  ML-KEM-512\n<\/p><\/td><td><p>\n  800\n<\/p><\/td><td><p>\n  768 ciphertext\n<\/p><\/td><\/tr><tr><td><p>\n  ML-KEM-768\n<\/p><\/td><td><p>\n  1,184\n<\/p><\/td><td><p>\n  1,088 ciphertext\n<\/p><\/td><\/tr><tr><td><p>\n  ML-KEM-1024\n<\/p><\/td><td><p>\n  1,568\n<\/p><\/td><td><p>\n  1,568 ciphertext\n<\/p><\/td><\/tr><tr><td><p>\n  ML-DSA-44\n<\/p><\/td><td><p>\n  1,312\n<\/p><\/td><td><p>\n  2,420 signature\n<\/p><\/td><\/tr><tr><td><p>\n  ML-DSA-65\n<\/p><\/td><td><p>\n  1,952\n<\/p><\/td><td><p>\n  3,309 signature\n<\/p><\/td><\/tr><tr><td><p>\n  ML-DSA-87\n<\/p><\/td><td><p>\n  2,592\n<\/p><\/td><td><p>\n  4,627 signature\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  These are raw algorithm sizes from FIPS 203\/204, not PEM, X.509 certificate, TLS handshake or JSON payload sizes. Check library support, protocol limits, memory and network overhead. NIST SP 800-227 provides additional guidance on KEM implementation and use. [11]\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">11. Hands-on lab 2: ML-KEM key encapsulation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Tested on OpenSSL 3.5.5 (default provider) in a Linux shell. Use OpenSSL 3.5 or a later compatible version with ML-KEM support. Run in a new, private temporary directory on a non-production machine. Do not publish private keys or shared-secret files. [7, 11, 14]\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"445\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/bob-creates-a-key-pair-and-sends-a-public-key-ali.png\" alt=\"Bob creates a key pair and sends a public key. Alice encapsulates to obtain a ciphertext and shared secret. Bob decapsulates the ciphertext with his private key to obtain the matching secret.\" class=\"wp-image-80699\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/bob-creates-a-key-pair-and-sends-a-public-key-ali.png 1200w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/bob-creates-a-key-pair-and-sends-a-public-key-ali-300x111.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/bob-creates-a-key-pair-and-sends-a-public-key-ali-1024x380.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/bob-creates-a-key-pair-and-sends-a-public-key-ali-768x285.png 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"figure-caption wp-block-paragraph\">\n  Figure 5 \u2014 KEM exchange; public key authenticity must be established by the surrounding protocol.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Generate, encapsulate, decapsulate and compare<\/h3>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">set -eu\numask <span class=\"hljs-number\">077<\/span>\nopenssl version\nopenssl <span class=\"hljs-keyword\">list<\/span> -kem-algorithms\nopenssl genpkey -algorithm ML-KEM<span class=\"hljs-number\">-768<\/span> -out bob.pem\nopenssl pkey -in bob.pem -pubout -out bob-<span class=\"hljs-keyword\">public<\/span>.pem\nopenssl pkeyutl -encap -pubin -inkey bob-<span class=\"hljs-keyword\">public<\/span>.pem \\\n  -out ciphertext.bin -secret alice-secret.bin\nopenssl pkeyutl -decap -inkey bob.pem \\\n  -in ciphertext.bin -secret bob-secret.bin\ncmp alice-secret.bin bob-secret.bin\nwc -c ciphertext.bin alice-secret.bin bob-secret.bin\nprintf <span class=\"hljs-string\">'Shared secrets match\\n'<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h3 class=\"wp-block-heading\">Expected result (observed)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The command comparison exits successfully. The ciphertext is 1,088 bytes, and Alice\u2019s and Bob\u2019s shared secrets are each 32 bytes. The secret is never printed. Actual key and ciphertext values change between runs.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  This demonstration is not an authenticated protocol. A substituted public key would undermine peer identity. Production protocols bind identities and negotiated parameters to the handshake, derive purpose-specific keys using their specified KDF, and use authenticated encryption; never use a custom KEM wrapper as a replacement for TLS.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">12. Hands-on lab 3: sign and verify with ML-DSA<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Tested on OpenSSL 3.5.5. A KEM establishes a shared secret; a digital signature proves that an entity possessing the signing key approved particular bytes. Use this lab to see why a signature fails after content modification. [8, 14]\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Create a release manifest, sign and verify<\/h3>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">set -eu\numask <span class=\"hljs-number\">077<\/span>\nopenssl genpkey -algorithm ML-DSA<span class=\"hljs-number\">-65<\/span> -out signer.pem\nopenssl pkey -in signer.pem -pubout -out signer-<span class=\"hljs-keyword\">public<\/span>.pem\nprintf <span class=\"hljs-string\">'Release 1.0\\n'<\/span> &gt; manifest.txt\nopenssl pkeyutl -sign -inkey signer.pem \\\n  -in manifest.txt -out manifest.sig\nopenssl pkeyutl -verify -pubin -inkey signer-<span class=\"hljs-keyword\">public<\/span>.pem \\\n  -in manifest.txt -sigfile manifest.sig\nprintf <span class=\"hljs-string\">'Release 9.9\\n'<\/span> &gt; tampered.txt\n<span class=\"hljs-keyword\">if<\/span> openssl pkeyutl -verify -pubin -inkey signer-<span class=\"hljs-keyword\">public<\/span>.pem \\\n    -in tampered.txt -sigfile manifest.sig; then\n  <span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">'Unexpected verification success'<\/span> &gt;&amp;<span class=\"hljs-number\">2<\/span>\n  <span class=\"hljs-keyword\">exit<\/span> <span class=\"hljs-number\">1<\/span>\n<span class=\"hljs-keyword\">else<\/span>\n  <span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">'Modified content rejected'<\/span>\nfi\nwc -c manifest.sig<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Observed: the original file verified successfully, the changed file failed verification and the signature measured 3,309 bytes. OpenSSL may also emit a provider error on the negative test; this is expected when verifying altered content. The private key remains in signer.pem.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why this matters to DevSecOps<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Build pipelines sign artifacts, container images, software manifests, SBOM attestations and firmware. A mature PQC migration covers signing tools, key storage, trusted public-key distribution, timestamps, certificate chains, verification at deployment and long-term evidence retention. Signing an artifact with ML-DSA alone does not make a supply chain quantum-safe if verifiers trust an RSA-only certificate chain or bypass verification.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Lab cleanup and key handling<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Delete the disposable lab directory after testing according to local policy. Do not reuse keys generated for tutorials. File deletion on SSDs or copy-on-write storage does not guarantee secure erasure; use encrypted disposable storage and appropriate key lifecycle controls. These commands demonstrate algorithm functionality, not FIPS module validation or production deployment readiness.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">13. Hybrid cryptography, TLS and the cloud<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  A post-quantum\/traditional hybrid key agreement combines both a traditional and a PQC component in one protocol. The intended protection is that a properly designed combiner retains confidentiality if at least one component remains secure. This depends on the precise construction, authentication and implementation; do not combine secrets by inventing your own protocol. [12]\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Hybrid TLS 1.3<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  RFC 10024 (August 2026) specifies hybrid TLS 1.3 groups X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. These combine ephemeral ECDHE with ML-KEM through the standardized TLS key schedule. Existing TLS cipher suites continue to describe symmetric encryption and hashing; the negotiated group identifies key agreement. [13]\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  PQC key establishment and PQC authentication are separate. A hybrid key agreement can help protect recorded traffic against future decryption, but an RSA- or ECDSA-authenticated handshake does not by itself provide post-quantum authentication. Plan certificate and signature migrations separately, respecting ecosystem interoperability and trust requirements.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Inspect TLS group negotiation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Documented example; not executed against a remote server. Replace service.example.com with a hostname you own or are authorized to test. A successful handshake requires compatible client and server group support, a trusted certificate chain and correct hostname validation. [15]\n<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">openssl s_client -connect service.example.com:<span class=\"hljs-number\">443<\/span> \\\n  -servername service.example.com -tls1_3 \\\n  -groups X25519MLKEM768 -verify_return_error \\\n  -verify_hostname service.example.com -brief &lt; <span class=\"hljs-regexp\">\/dev\/<\/span><span class=\"hljs-literal\">null<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Inspect the negotiated key-exchange group, TLS version, verification status and certificate signature scheme. Compare this against the server policy; distinguish successful hybrid negotiation from a successful handshake using a traditional group. Do not disable certificate checks to make the test pass.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What to assess across infrastructure<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><strong>Surface<\/strong>\n<\/p><\/th><th><p><strong>Quantum-readiness question<\/strong>\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  Load balancers \/ ingress\n<\/p><\/td><td><p>\n  Do client, proxy and origin support desired groups? Which hop terminates TLS?\n<\/p><\/td><\/tr><tr><td><p>\n  Service mesh \/ mTLS\n<\/p><\/td><td><p>\n  Are sidecars, identities, issuers and trust bundles compatible?\n<\/p><\/td><\/tr><tr><td><p>\n  KMS \/ HSM \/ PKI\n<\/p><\/td><td><p>\n  Can products generate, protect, rotate, revoke and recover approved key types?\n<\/p><\/td><\/tr><tr><td><p>\n  CI\/CD \/ firmware\n<\/p><\/td><td><p>\n  Can every producer and verifier handle new signatures and metadata?\n<\/p><\/td><\/tr><tr><td><p>\n  VPN \/ SSH \/ IoT\n<\/p><\/td><td><p>\n  Are protocol versions, packet size, memory and firmware upgrade paths adequate?\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">14. Enterprise quantum-readiness roadmap<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"410\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/five-stage-roadmap-discover-cryptography-priorit.png\" alt=\"Five-stage roadmap: discover cryptography, prioritize by data lifetime, pilot hybrid\/PQC, deploy through canaries and retire legacy algorithms with audit evidence.\" class=\"wp-image-80700\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/five-stage-roadmap-discover-cryptography-priorit.png 1200w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/five-stage-roadmap-discover-cryptography-priorit-300x103.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/five-stage-roadmap-discover-cryptography-priorit-1024x350.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/five-stage-roadmap-discover-cryptography-priorit-768x262.png 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"figure-caption wp-block-paragraph\">\n  Figure 6 \u2014 A staged approach to quantum-safe modernization.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  NIST IR 8547, finalized October 27, 2026, provides a transition framework for quantum-vulnerable public-key algorithms. NIST\u2019s federal guidance identifies accelerated targets for specified high-value\/high-impact systems: 2030 for key establishment, 2031 for digital signatures, alongside a broader 2035 migration target. These are not universal private-sector legal deadlines; confirm applicability and the current guidance for your jurisdiction and sector. [16, 17]\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">A practical inventory and migration plan<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><br>  Discover cryptography: inventory TLS endpoints, certificates, SSH keys, VPNs, code signing, KMS APIs, libraries, embedded devices, archived encrypted records and external dependencies. Record owners, algorithms, versions, lifetimes and upgrade paths.<br><\/li>\n\n\n\n<li><br>  Prioritize by exposure, data sensitivity, retention period, migration complexity and supplier dependencies. Long-lived confidential data facing harvest-now-decrypt-later risk should receive early attention.<br><\/li>\n\n\n\n<li><br>  Pilot standardized algorithms and supported hybrid modes in representative environments. Test success, rejection, downgrade behavior, performance, interoperability, certificate verification and rollback.<br><\/li>\n\n\n\n<li><br>  Roll out using canaries and measurable acceptance criteria. Record negotiated algorithms and failure counts without logging keying material. Document exceptions and expiration dates.<br><\/li>\n\n\n\n<li><br>  Retire quantum-vulnerable key establishment and signatures according to applicable policy; handle retained verification evidence and recovery carefully. Monitor cryptographic standards, errata and dependency updates.<br><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">The risk timeline heuristic<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  If X is the remaining confidentiality lifetime of data, Y is the estimated migration duration and Z is the uncertain time until an adversary has a relevant quantum capability, X + Y &gt; Z suggests the migration may already be urgent. Treat Z as a scenario range, not a prediction. This simple planning heuristic is useful for prioritization, not a cryptographic risk proof.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">15. Real-world use cases and limitations<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><strong>Use case<\/strong>\n<\/p><\/th><th><p><strong>Practical direction<\/strong>\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  Data centers and fixed high-value links\n<\/p><\/td><td><p>\n  PQC\/hybrid first; evaluate QKD if dedicated optical infrastructure and a specific assurance requirement justify it.\n<\/p><\/td><\/tr><tr><td><p>\n  Cloud-native applications and public websites\n<\/p><\/td><td><p>\n  Adopt supported PQC\/hybrid TLS, assess all termination points and modernize PKI; QKD is generally not needed.\n<\/p><\/td><\/tr><tr><td><p>\n  Government and critical infrastructure\n<\/p><\/td><td><p>\n  Follow sector-specific approved algorithms and accreditation rules. NSA cautions against QKD for NSS unless limitations are overcome. [18]\n<\/p><\/td><\/tr><tr><td><p>\n  Healthcare, finance and research data\n<\/p><\/td><td><p>\n  Prioritize long-lived confidential records, protected backups, key management and data-in-transit migration.\n<\/p><\/td><\/tr><tr><td><p>\n  Software supply chains and firmware\n<\/p><\/td><td><p>\n  Plan PQC signature support, durable trust anchors, verification performance and device recovery.\n<\/p><\/td><\/tr><tr><td><p>\n  Research and metro quantum networks\n<\/p><\/td><td><p>\n  Study link quality, trusted nodes, device assumptions and secret-key availability under realistic load.\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Why QKD is not a universal Internet replacement<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Quantum links require optical equipment and cannot be replicated as ordinary packets. Fiber attenuation, detector dark counts and optical interference reduce secret key rate. Dedicated infrastructure can be expensive. An adversary can deny service by disrupting photons or the classical channel, and compromised endpoints or key-management systems remain serious risks.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  For example, a fiber attenuation of 0.2 dB\/km yields approximately 20 dB loss over 100 km, ignoring connectors and other components: a transmission fraction of 10^(\u221220\/10) = 1%. This is an optical power ratio, not a guaranteed detection probability or secure key rate. Equipment efficiency, noise, protocol choices and finite-key effects further influence usable output.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why QKD is not always a one-time pad<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  A correctly used one-time pad requires uniformly random secret key material at least as long as the plaintext, used only once, plus a separate authentication mechanism for integrity. A 1 Gbit\/s payload would consume roughly 1 Gbit\/s of pad bits. Many practical QKD systems instead periodically rekey conventional authenticated encryptors, which lowers key consumption but retains computational security assumptions for data encryption.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">16. Best practices, monitoring and troubleshooting<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">A production security checklist<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><br>    Require authenticated channels, hardened endpoints, authorized key delivery, independent assurance and documented security assumptions.<br>  <\/li>\n\n\n\n<li><br>    Validate parameters and errata; select maintained, interoperable implementations. Use approved cryptographic modules where policy requires them; algorithm compliance is not the same as module certification.<br>  <\/li>\n\n\n\n<li><br>    Protect private keys, shared secrets, random seeds and KMS credentials. Never log them, include them in telemetry or expose them in crash dumps.<br>  <\/li>\n\n\n\n<li><br>    Define explicit failure behavior for key exhaustion, authentication failure and unsafe QBER. Avoid silent fallback to a weaker mode; make risk exceptions auditable.<br>  <\/li>\n\n\n\n<li><br>    Test entropy health, disaster recovery, certificate revocation, patching, key rotation, incident response and failover. Monitor negotiated groups and signature algorithms across all TLS hops.<br>  <\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Troubleshooting guide<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><strong>Symptom<\/strong>\n<\/p><\/th><th><p><strong>Likely cause \/ action<\/strong>\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  High QBER or falling secret key rate\n<\/p><\/td><td><p>\n  Check optical alignment, timing, attenuation, ambient noise, source and detector health. Follow security policy; abort unsafe key generation.\n<\/p><\/td><\/tr><tr><td><p>\n  No sifted bits\n<\/p><\/td><td><p>\n  Check sample size, synchronization, detection events and basis mapping. Confirm compatible protocol configuration.\n<\/p><\/td><\/tr><tr><td><p>\n  Key IDs disagree \/ KMS empty\n<\/p><\/td><td><p>\n  Inspect peer identity, key-pool availability, ID correlation, key consumption and API authorization. Never reuse consumed keys.\n<\/p><\/td><\/tr><tr><td><p>\n  OpenSSL unsupported algorithm\n<\/p><\/td><td><p>\n  Check openssl version, installed providers, algorithm lists and build configuration. Use compatible OpenSSL 3.5+.\n<\/p><\/td><\/tr><tr><td><p>\n  KEM secrets differ\n<\/p><\/td><td><p>\n  Check public\/private key pairing and ciphertext integrity. Invalid KEM ciphertext can yield a replacement secret; authenticated protocol checks must detect failure.\n<\/p><\/td><\/tr><tr><td><p>\n  Signature verification fails\n<\/p><\/td><td><p>\n  Verify exact bytes, public key, algorithm and any context options. Reject modified content rather than bypassing checks.\n<\/p><\/td><\/tr><tr><td><p>\n  Hybrid TLS handshake fails\n<\/p><\/td><td><p>\n  Confirm groups on both sides, certificate trust, proxy configuration, MTU and handshake size. Test approved fallback policy.\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Operational metrics<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  For QKD: secret key bits per second, QBER by basis, detection rate, key-pool occupancy, rejected blocks, classical authentication failures and device alarms. For PQC: negotiated group coverage, certificate\/signature algorithm coverage, handshake errors, handshake bytes, p95\/p99 latency, CPU, memory, and rollback counts. Correlate with application SLOs rather than treating cryptographic metrics in isolation.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">17. Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Concepts, security and deployment<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Is quantum cryptography unbreakable?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  No. QKD can have rigorous secrecy guarantees under a stated model, but flawed equipment, authentication, software, endpoints or operational practices can compromise a deployed system.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">What is the difference between QKD and PQC?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  QKD uses quantum states and specialized links to generate shared keys. PQC uses classical computation and mathematically designed algorithms for key establishment and signatures.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Does quantum cryptography need a quantum computer?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Not a general-purpose quantum computer. QKD needs suitable quantum-state preparation and measurement equipment. PQC requires no quantum hardware.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Can a quantum computer break all encryption?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  No. Shor\u2019s algorithm threatens widely used factoring and discrete-logarithm public-key schemes. Symmetric cryptography and hashes face different quantum search considerations.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Does measuring a photon always reveal an eavesdropper?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  No. Some measurements cause no observable error, and a single result cannot prove interception. QKD relies on statistical parameter estimation and a security proof.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">What is a safe QBER value?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  There is no universal number. It depends on the protocol, security model, source, detection statistics, finite-key analysis and system policy.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Is QKD the same as quantum encryption?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Not usually. Most QKD systems distribute key material that conventional encryption uses to protect data.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Can QKD prevent man-in-the-middle attacks?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Only when the classical protocol is properly authenticated and the implementation satisfies its security model. QKD alone does not authenticate identities.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">What is ML-KEM used for?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Establishing a shared secret through key generation, encapsulation and decapsulation; not signing files or directly encrypting arbitrary messages.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">What are ML-DSA and SLH-DSA used for?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Digital signatures. Both are standardized PQC choices; their performance, size and security assumptions differ.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Will existing HTTPS websites need quantum hardware?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  No. Supported PQC or hybrid key establishment can operate on classical infrastructure. TLS implementation and PKI compatibility still require planning.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">When should organizations start migrating?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Now: inventory dependencies, prioritize data with long confidentiality lifetimes, and pilot approved algorithms based on risk and applicable timelines.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">18. Learning path and final takeaways<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Quantum cryptography is valuable because it reveals a different foundation for secrecy: quantum physics rather than only computational complexity. Post-quantum cryptography addresses a more immediate engineering challenge: preserving public-key security across the existing digital ecosystem without installing quantum hardware everywhere.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">A recommended sequence for hands-on learning<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><br>  Learn qubits, measurement bases, probabilities and the no-cloning theorem. Work through the eight-position BB84 example manually.<br><\/li>\n\n\n\n<li><br>  Run the Python simulator and compare QBER values with the expected statistics. Read the original BB84 paper and a practical-security review.<br><\/li>\n\n\n\n<li><br>  Run ML-KEM encapsulation and ML-DSA signing using the tested labs. Explain the different purposes of a KEM and a digital signature.<br><\/li>\n\n\n\n<li><br>  Read the NIST standards and the TLS hybrid RFC. Investigate the cryptographic inventory of a system you control.<br><\/li>\n\n\n\n<li><br>  Develop a migration pilot with explicit security, availability, interoperability, observability and rollback requirements.<br><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Key terms at a glance<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p><strong>Term<\/strong>\n<\/p><\/th><th><p><strong>Meaning<\/strong>\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  QKD\n<\/p><\/td><td><p>\n  Quantum key distribution: generation of shared key material using quantum signals.\n<\/p><\/td><\/tr><tr><td><p>\n  QBER\n<\/p><\/td><td><p>\n  Quantum bit error rate: observed disagreement rate for selected measurements.\n<\/p><\/td><\/tr><tr><td><p>\n  PQC\n<\/p><\/td><td><p>\n  Post-quantum cryptography: classical algorithms designed to resist quantum attackers.\n<\/p><\/td><\/tr><tr><td><p>\n  KEM\n<\/p><\/td><td><p>\n  Key-encapsulation mechanism: establishes a shared secret using a public key and ciphertext.\n<\/p><\/td><\/tr><tr><td><p>\n  AEAD\n<\/p><\/td><td><p>\n  Authenticated encryption with associated data: provides confidentiality and integrity.\n<\/p><\/td><\/tr><tr><td><p>\n  KDF\n<\/p><\/td><td><p>\n  Key derivation function: derives purpose-specific keys from input keying material.\n<\/p><\/td><\/tr><tr><td><p>\n  CRQC\n<\/p><\/td><td><p>\n  Cryptanalytically relevant quantum computer: capable of breaking targeted cryptographic schemes.\n<\/p><\/td><\/tr><tr><td><p>\n  Crypto agility\n<\/p><\/td><td><p>\n  Ability to replace algorithms and implementations without disruptive redesign.\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Bottom line: use QKD when its physical-network characteristics and assurance model meet a justified requirement. For most organizations, the priority is standardized PQC, careful hybrid protocol deployment, modern key management and a measurable migration plan. Neither approach eliminates the need for disciplined cybersecurity engineering.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">19. Official documentation and research references<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Standards, primary research and implementation documentation. Links and standards status checked December 2026. Consult errata and current versions before making production decisions.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.nist.gov\/cybersecurity-and-privacy\/what-quantum-cryptography\" rel=\"noopener\">[1] NIST \u2014 What Is Quantum Cryptography?<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/arxiv.org\/abs\/2003.06557\" rel=\"noopener\">[2] Bennett &amp; Brassard \u2014 Quantum cryptography: Public key distribution and coin tossing (1984; archived original)<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/doi.org\/10.1103\/PhysRevLett.67.661\" rel=\"noopener\">[3] Ekert \u2014 Quantum cryptography based on Bell\u2019s theorem (1991)<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/doi.org\/10.1103\/PhysRevLett.68.557\" rel=\"noopener\">[4] Bennett, Brassard &amp; Mermin \u2014 Quantum cryptography without Bell\u2019s theorem (1992)<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/doi.org\/10.1103\/RevModPhys.92.025002\" rel=\"noopener\">[5] Xu et al. \u2014 Secure quantum key distribution with realistic devices (2020)<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.etsi.org\/deliver\/etsi_gs\/QKD\/001_099\/014\/01.01.01_60\/gs_QKD014v010101p.pdf\" rel=\"noopener\">[6] ETSI GS QKD 014 \u2014 REST-based key delivery API (2019)<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/csrc.nist.gov\/pubs\/fips\/203\/final\" rel=\"noopener\">[7] NIST FIPS 203 \u2014 ML-KEM<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/csrc.nist.gov\/pubs\/fips\/204\/final\" rel=\"noopener\">[8] NIST FIPS 204 \u2014 ML-DSA<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/csrc.nist.gov\/pubs\/fips\/205\/final\" rel=\"noopener\">[9] NIST FIPS 205 \u2014 SLH-DSA<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/csrc.nist.gov\/projects\/post-quantum-cryptography\/post_quantum_cryptography-standardization\" rel=\"noopener\">[10] NIST \u2014 Post-Quantum Cryptography Standardization Process<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/csrc.nist.gov\/pubs\/sp\/800\/227\/final\" rel=\"noopener\">[11] NIST SP 800-227 \u2014 Recommendations for Key-Encapsulation Mechanisms<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc9794\" rel=\"noopener\">[12] IETF RFC 9794 \u2014 Terminology for PQ\/T Hybrid Schemes<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc10024\" rel=\"noopener\">[13] IETF RFC 10024 \u2014 PQ\/T Hybrid Key Agreement Mechanisms for TLS 1.3<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/docs.openssl.org\/3.5\/man1\/openssl-pkeyutl\/\" rel=\"noopener\">[14] OpenSSL 3.5 \u2014 pkeyutl command and PQC examples<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/docs.openssl.org\/3.5\/man1\/openssl-s_client\/\" rel=\"noopener\">[15] OpenSSL 3.5 \u2014 s_client command<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/csrc.nist.gov\/pubs\/ir\/8547\/final\" rel=\"noopener\">[16] NIST IR 8547 \u2014 Transition to Post-Quantum Cryptography Standards (final)<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.nist.gov\/news-events\/news\/2026\/10\/nist-report-provides-guidelines-transition-post-quantum-cryptography\" rel=\"noopener\">[17] NIST \u2014 Transition guidance and federal milestones<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.nsa.gov\/Cybersecurity\/Quantum-Key-Distribution-QKD-and-Quantum-Cryptography-QC\/\" rel=\"noopener\">[18] NSA \u2014 Quantum Key Distribution and Quantum Cryptography position<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/arxiv.org\/abs\/quant-ph\/9508027\" rel=\"noopener\">[19] Shor \u2014 Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/arxiv.org\/abs\/quant-ph\/0003004\" rel=\"noopener\">[20] Shor &amp; Preskill \u2014 Simple proof of security of the BB84 quantum key distribution protocol<\/a>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quantum Cryptography: The Complete Tutorial Guide Understand quantum key distribution, BB84, quantum-safe encryption and post-quantum cryptography through clear explanations, original diagrams and practical labs. Featured image \u2014&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[49],"tags":[],"class_list":["post-80693","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/80693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=80693"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/80693\/revisions"}],"predecessor-version":[{"id":80701,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/80693\/revisions\/80701"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=80693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=80693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=80693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}