By Bonaventure Ogeto · Published · Last verified:
Cryptography Explained: From the Caesar Cipher to Post-Quantum Security
The short answer
Cryptography is the maths that keeps information secret and proves who sent it. It grew from hand ciphers like Caesar's into the public-key systems behind every HTTPS connection. A large quantum computer would break those, so the world is moving to NIST's post-quantum standards. No published attack breaks deployed encryption today, but the move is urgent.
Source: Mctaba Labs, “Cryptography Explained: From the Caesar Cipher to Post-Quantum Security”, last verified 4 December 2026, mctaba.com/learn/cryptography
What changed in December 2026
- On 2 December 2026[1] the NSA told owners of US national security systems to “immediately accelerate the transition to post-quantum cryptography”[2], and eight technology companies[3] backed the US government's guidance.
- The same day the ONCD, NSA and CISA said companies building what they call Super Intelligence had disclosed discoveries that impact the security of some cryptography currently in use[1], while assessing that the advances “do not present an immediate and widespread threat”[1].
- On 30 November 2026[4] Anthropic released four theoretical papers[4] on lattice cryptography. Its own paper calls the main algorithm galactic[5] and impractical for ML-KEM and ML-DSA, and the UK's NCSC said it does not represent a threat[6] to either.
- Google had already set a 2029[7] timeline for its own migration and Cloudflare a 2029[8] target, and the US government's most sensitive systems face deadlines in 2030 and 2031[9].
- What it means: no published attack breaks deployed encryption, but the move to NIST's standards, with hybrid modes and agile systems, should happen sooner. Why the migration accelerated has the detail.
What is cryptography?
Cryptography is the practice of protecting information from people who should not read or change it. Modern cryptography does four jobs. Encryption keeps data secret. Hashing shows whether data has been altered. Digital signatures prove who sent something. Key exchange lets two strangers agree on a secret key over a network anyone can watch. Symmetric vs asymmetric encryption, hashing and digital signatures explains each building block and where it is used.
You rely on all four many times a day, mostly without noticing. This series follows cryptography from hand ciphers to the standards replacing today's algorithms, and ends with what to do about it.
Where did cryptography come from?
For most of history, cryptography meant hiding messages by hand. Suetonius records that Julius Caesar wrote confidential letters in cipher; to read one you “substitute the fourth letter of the alphabet, namely D, for A”[10], and so on through the alphabet. Ciphers like that fall to frequency analysis, because some letters are far more common than others. A peer-reviewed history of letter counting names al-Kindi's Manuscript on Deciphering Cryptographic Messages as perhaps the first exposition of the method[12]. Al-Kindi worked in Baghdad at the House of Wisdom and lived from about 801 to 873[11].
Renaissance Europe answered with ciphers that switch alphabets as they go. Leon Battista Alberti proposed an encrypting disk before 1470[13]. Giovan Battista Bellaso published a cipher keyed by a passphrase in 1553[13], and its best-known form carries the name of Blaise de Vigenère, whose book appeared in 1586[13].
The twentieth century brought machines. Polish cryptologists first decrypted messages from the German Enigma machine on 31 December 1932[14] and shared their methods with Britain and France in July 1939[14]. GCHQ says Alan Turing's conversations with Marian Rejewski were fundamental[28] to the British Bombe, whose first machine started work at Bletchley Park on 14 March 1940[15]. Colossus, built to attack a different German cipher, Lorenz, was working by February 1944[16]. The history of cryptography tells the whole story.
How did computers and public keys change cryptography?
Computers turned secret methods into published standards that anyone could examine. The US published the Data Encryption Standard (DES) as FIPS 46 on 15 January 1977[29] and withdrew its last version in 2005[30]. Its successor came from an open competition: Joan Daemen and Vincent Rijmen's Rijndael won in 2000[31] and became AES, published as FIPS 197 on 26 November 2001[22].
The bigger change was public-key cryptography. Before it, two people needed a shared secret before they could talk securely, and delivering that secret was the hard part. In November 1976[17] Whitfield Diffie and Martin Hellman described systems in which computing the deciphering key from the enciphering key is computationally infeasible[17]. In 1977[18] Ron Rivest, Adi Shamir and Leonard Adleman built RSA at MIT, a system whose security rests in part on the difficulty of factoring[32] huge numbers. Britain's GCHQ had found the same ideas in secret: the UK's NCSC dates James Ellis's insight to 1970[33], and the work stayed classified until 1997[19]. Neal Koblitz and Victor Miller added elliptic-curve cryptography in 1985[20]. Public-key cryptography explained shows how these systems work.
How does cryptography protect you today?
Every HTTPS connection uses all four building blocks: key exchange to agree a session key, a signed certificate to prove the server is genuine, symmetric encryption such as AES for the data, and hashes throughout. In Kenya that covers merchant servers that, per Safaricom's Daraja documentation, fetch their access tokens over HTTPS[34] before calling M-Pesa APIs, as well as bank apps and government portals. WhatsApp's end-to-end encryption is based on the Signal Protocol, with Curve25519[35] identity keys on each device. How encryption protects your M-Pesa, bank app and WhatsApp messages walks through each.
The symmetric parts of that system are in good shape for the long term. The public-key parts, RSA and elliptic curves, are the ones with a known future problem.
Why would a quantum computer break today's encryption?
A quantum computer computes with qubits, quantum bits whose states can combine and interfere in ways ordinary bits cannot. In 1994[21] Peter Shor gave quantum algorithms that factor large numbers and compute discrete logarithms efficiently. NIST says that would render public-key systems built on those problems impotent[36]: RSA, Diffie-Hellman and elliptic-curve cryptography. The same goes for Bitcoin, whose elliptic-curve keys would lose all security[37] to Shor's algorithm on an idealised quantum computer, as the Bitcoin guide explains.
Lov Grover's search algorithm of 1996[38] is a lesser threat. NIST expects AES-128 to remain secure for decades[39], and says that if Grover's algorithm ever becomes practical, doubling the key size will be sufficient[36]. That is why AES-256 is considered quantum safe.
No machine able to run Shor's algorithm at that scale exists yet, but estimates of the machine needed keep falling. Google estimated in May 2025[40] that an RSA-2048 key could in theory fall to 1 million noisy qubits running for one week[40]. How quantum computers could break RSA and ECC explains the algorithms, and when will quantum computers break encryption weighs the forecasts. The danger also starts before that day: attackers can record encrypted traffic now and decrypt it later, a threat NIST calls one of the main reasons[9] the transition is urgent. Harvest now, decrypt later explains which data is most exposed.
What is post-quantum cryptography, and who chose the standards?
Post-quantum cryptography is new public-key maths designed to resist quantum computers while running on ordinary ones. NIST ran an open, worldwide competition. It called for proposals on 20 December 2016[23], received 82 submissions[24], announced its choices on 5 July 2022[23], and published ML-KEM, ML-DSA and SLH-DSA as FIPS 203, FIPS 204 and FIPS 205 on 13 August 2024[25]. A further signature standard, FN-DSA, is in development[25], and HQC, a backup key mechanism built on different maths, was selected in March 2025[25].
Three of the four algorithms NIST first chose[41] rest on lattices, grids of points in many dimensions where certain problems are believed hard even for a quantum computer. The central problem, Learning With Errors, was introduced by Oded Regev in 2005[42]. What is post-quantum cryptography? is the plain-English introduction, the NIST standards guide covers each algorithm, and lattice cryptography explained covers the maths without the heavy notation.
Much of it is already running. Google moved Chrome's hybrid key exchange to ML-KEM in Chrome 131[43]. Signal announced post-quantum protection in September 2023[44] and Apple announced it for iMessage in February 2024[45]. Cloudflare reported that by late October 2025[46] most human traffic to its network used post-quantum encryption, and the IETF published the hybrid key exchange groups for TLS 1.3 as RFC 10024 in August 2026[47].
What changed in December, and is anything broken?
Two pressures that had been building separately began pushing the same way. A November briefing from the Global Risk Institute and evolutionQ summed it up: “AI is helping to address challenges in both quantum computing and cryptanalysis”[48].
On the AI side, Anthropic reported in July 2026[26] that its researchers, using its Claude Mythos Preview model, had found attacks on HAWK, a candidate signature scheme, and on a reduced version of AES, neither affecting production systems. On 30 November 2026[4] it released papers including a quantum algorithm aimed at the maths behind ML-KEM and ML-DSA. The Cryptography Incident Review Group (CIRG), 21 cryptographers[49] serving in a personal capacity, found it needs “vastly more computation than the best previously known attacks”[27] and recommended continuing the migration. Two days later, US agencies and eight technology companies[3] called for the move to speed up.
No published attack breaks anything deployed. Some coverage suggested that AI had defeated post-quantum encryption. That is false: Anthropic itself said the lattice results “do not have practical, real-world consequences for today's security systems”[4], and the agencies' own assessment is that the advances “do not present an immediate and widespread threat”[1]. Why the migration accelerated in December covers the official statements, and what Anthropic's lattice findings mean separates the facts from the headlines.
What can go wrong during the migration?
New cryptography has its own failure modes. SIKE, a fourth-round candidate[50] for key exchange, fell to a classical attack first posted in 2022[51]. KyberSlash, a timing leak in Kyber software, was first patched in the reference code on 1 December 2023[52]. Bigger post-quantum handshakes trip up servers that reject connections that use post-quantum cryptography[53] instead of falling back.
That is why browsers and large platforms deploy hybrids: they pair a classical algorithm with a post-quantum one, and NIST's stated goal is that derived keys remain secure if at least one of the component schemes is secure[9]. A hybrid guards against flaws in the new maths; against a large quantum computer, only the post-quantum half counts. The real risks of post-quantum migration covers bugs, side channels and broken assumptions.
What should you do now?
The dates are set. In its final NIST IR 8547, published on 27 October 2026[54], NIST says it will deprecate quantum-vulnerable public-key algorithms after 2030[9] and disallow them after 2035[9]. Executive Order 14412, signed on 22 June 2026[55], gives US federal high value assets and high impact systems until 31 December 2030[55] for post-quantum key establishment and 31 December 2031[55] for digital signatures. The UK's NCSC asks for discovery and a plan by 2028[56], priority migrations by 2031[56] and full migration by 2035[56]. Google has set a 2029[7] timeline for its own migration, and Cloudflare a 2029[8] target.
For a Kenyan bank, SACCO, fintech or software team, the work comes in four steps:
- Find your cryptography. List every RSA and elliptic-curve key, certificate and library you depend on. Crypto-agility and cryptographic inventory shows how.
- Protect data in transit first. Turn on hybrid post-quantum key exchange in TLS. How to enable post-quantum TLS is the developer guide.
- Plan the rest with your vendors. Signatures, hardware and partner systems take longer. Post-quantum readiness for Kenyan and African businesses is a practical checklist.
- Build for change. Keep algorithms in configuration so you can swap them again if one weakens.
Urgent, then, but not alarming: the standards exist, the tools exist, and no published attack, quantum or AI, breaks the standard algorithms you run today.
Timeline
Ancient Rome[10]
Julius Caesar writes confidential letters in cipher. To read them, Suetonius says, you “substitute the fourth letter of the alphabet, namely D, for A”[10].
About 801 to 873[11]
In Baghdad, al-Kindi explains frequency analysis in his Manuscript on Deciphering Cryptographic Messages[12]: count the letters, and a simple cipher gives itself away.
1553[13]
In Venice, Giovan Battista Bellaso publishes a cipher keyed by a passphrase. The cipher later took the name of Blaise de Vigenère, whose book of 1586[13] credited Bellaso.
31 December 1932[14]
Polish Cipher Bureau cryptologists, among them Marian Rejewski, first decrypt Enigma messages in Warsaw.
14 March 1940[15]
Victory, the first Turing-Welchman Bombe, starts breaking Enigma messages at Bletchley Park.
February 1944[16]
Colossus, an early electronic computer built to attack the Lorenz cipher, is working at Bletchley Park.
November 1976[17]
Whitfield Diffie and Martin Hellman publish New Directions in Cryptography, proposing public-key cryptography.
1977[18]
Ron Rivest, Adi Shamir and Leonard Adleman develop RSA at MIT. GCHQ had reached the same ideas in secret and kept them classified until 1997[19].
1985[20]
Neal Koblitz and Victor Miller propose elliptic-curve cryptography.
1994[21]
Peter Shor shows that a quantum computer could factor large numbers and compute discrete logarithms efficiently, the problems behind RSA and elliptic curves.
26 November 2001[22]
AES, the Rijndael cipher by Joan Daemen and Vincent Rijmen, becomes a US standard as FIPS 197.
20 December 2016[23]
NIST calls for post-quantum algorithms and goes on to receive 82 submissions[24].
13 August 2024[25]
NIST publishes its first post-quantum standards: ML-KEM, ML-DSA and SLH-DSA.
28 July 2026[26]
Anthropic reports AI-found attacks on HAWK, a candidate signature scheme, and on a reduced version of AES. No production system is affected.
30 November 2026[4]
Anthropic announces four theoretical papers[4] on lattice cryptography. The CIRG review group judges it galactic[27] in scale and recommends continuing[27] the migration.
2 December 2026[1]
US agencies urge an accelerated move while assessing no immediate and widespread threat, and eight technology companies[3] back them.
Every guide in this series
What changed in 2026
Post-quantum cryptography
- What Is Post-Quantum Cryptography? A Plain-English Explanation (2026)
- How Quantum Computers Could Break RSA and Elliptic Curve Encryption
- Harvest Now, Decrypt Later: Why Today's Data Is Already at Risk
- NIST Post-Quantum Standards Explained: ML-KEM, ML-DSA, SLH-DSA, FN-DSA and HQC
- Lattice Cryptography Explained Without the Heavy Math
Risks and common questions
What to do now
Where cryptography came from
Frequently asked questions
- What is the difference between encryption and cryptography?
- Cryptography is the whole field. Encryption, which hides data, is one tool inside it, alongside hashing, digital signatures and key exchange. Symmetric vs asymmetric encryption, hashing and signatures explains all four.
- Will quantum computers break all encryption?
- No. They threaten public-key cryptography: NIST says RSA, ECDSA and ECDH would be no longer secure[36] against a large quantum computer. Symmetric encryption fares far better: NIST expects AES-128 to remain secure for decades[39], and says that if Grover's algorithm ever becomes practical, doubling the key size will be sufficient[36]. Post-quantum algorithms replace the vulnerable public-key parts.
- Has AI made today's encryption unsafe?
- No. The AI findings published in 2026[26] break nothing deployed. The US agencies say companies also disclosed discoveries that impact the security of some cryptography currently in use[1], but assess that they “do not present an immediate and widespread threat”[1]. AI does speed up the search for weaknesses, which is a reason to migrate sooner and to use hybrid modes.
- When will quantum computers break encryption?
- No one knows. NIST says expert estimates range from a few years to a few decades[41]. When will quantum computers break encryption? weighs the forecasts.
- Is my M-Pesa or WhatsApp data at risk?
- No attack known today can read it. The risk is later: Daraja's M-Pesa API calls run over HTTPS[34] and WhatsApp uses Curve25519[35] keys, public-key cryptography a large quantum computer would break, and traffic recorded now could be decrypted then. That is why the industry is moving to post-quantum algorithms. How encryption protects your M-Pesa, bank app and WhatsApp messages explains what protects each, and harvest now, decrypt later explains the delay.
- Where should a business start?
- With an inventory: find every place you use RSA and elliptic-curve keys, then rank systems by how long their data must stay secret. Crypto-agility and cryptographic inventory shows how to find the keys.
Sources
- [1] CISA, 2 December 2026, checked 4 December 2026
- [2] National Security Agency, 2 December 2026, checked 4 December 2026
- [3] Anthropic, 2 December 2026, checked 4 December 2026
- [4] Anthropic (X post), 30 November 2026, checked 4 December 2026
- [5] Anthropic, November 2026, checked 4 December 2026
- [6] UK National Cyber Security Centre, 1 December 2026, checked 4 December 2026
- [7] Google, 25 March 2026, checked 4 December 2026
- [8] Cloudflare, 7 April 2026, checked 4 December 2026
- [9] NIST, October 2026, checked 4 December 2026
- [10] LacusCurtius (Bill Thayer, University of Chicago), Loeb Classical Library translation, 1913, 1913, checked 4 December 2026
- [11] MacTutor History of Mathematics, University of St Andrews, November 1999, checked 4 December 2026
- [12] Bernard Ycart, Historiographia Linguistica 40(3), 2013, pp. 303-329 (author's arXiv version), 2013, checked 4 December 2026
- [13] Paolo Bonavoglia, Proceedings of HistoCrypt 2020 (Linköping University Electronic Press), 2020, checked 4 December 2026
- [14] Foreign Intelligence Agency (Agencja Wywiadu), Poland, checked 4 December 2026
- [15] The National Museum of Computing, checked 4 December 2026
- [16] The National Museum of Computing, checked 4 December 2026
- [17] IEEE Transactions on Information Theory (copy on Martin Hellman's Stanford page), November 1976, checked 4 December 2026
- [18] MIT News, 30 April 2003, checked 4 December 2026
- [19] IEEE History Center, Engineering and Technology History Wiki, 5 October 2010, checked 4 December 2026
- [20] Standards for Efficient Cryptography Group (SEC 1 v2.0, Certicom Research), 21 May 2009, checked 4 December 2026
- [21] arXiv, 30 August 1995, checked 4 December 2026
- [22] NIST Computer Security Resource Center, 26 November 2001, checked 4 December 2026
- [23] NIST CSRC, 2 December 2026, checked 4 December 2026
- [24] NIST, January 2019, checked 4 December 2026
- [25] NIST CSRC, 2 December 2026, checked 4 December 2026
- [26] Anthropic, 28 July 2026, checked 4 December 2026
- [27] Cryptography Incident Review Group, 30 November 2026, checked 4 December 2026
- [28] GCHQ, 21 July 2020, checked 4 December 2026
- [29] NIST Computer Security Resource Center, 15 January 1977, checked 4 December 2026
- [30] NIST Computer Security Resource Center, 25 October 1999, checked 4 December 2026
- [31] NIST, 2 October 2000, checked 4 December 2026
- [32] Rivest, Shamir and Adleman (author's copy on Ronald Rivest's MIT page), February 1978, checked 4 December 2026
- [33] National Cyber Security Centre (UK), checked 4 December 2026
- [34] Safaricom Daraja developer portal (API Documentation), Internet Archive snapshot of 10 December 2019, 10 December 2019, checked 4 December 2026
- [35] WhatsApp (Meta), WhatsApp Encryption Overview technical white paper, 30 October 2026, checked 4 December 2026
- [36] NIST, April 2016, checked 4 December 2026
- [37] Bitcoin Optech (topic page), checked 4 December 2026
- [38] arXiv, 29 May 1996, checked 4 December 2026
- [39] NIST CSRC, 18 November 2018, checked 4 December 2026
- [40] Google, 23 May 2025, checked 4 December 2026
- [41] NIST, 27 February 2026, checked 4 December 2026
- [42] Oded Regev (author's copy), 2 May 2009, checked 4 December 2026
- [43] Google (Online Security Blog), 13 September 2024, checked 4 December 2026
- [44] Signal (blog), 19 September 2023, checked 4 December 2026
- [45] Apple Security Research, 21 February 2024, checked 4 December 2026
- [46] Cloudflare, 28 October 2025, checked 4 December 2026
- [47] RFC Editor (IETF), August 2026, checked 4 December 2026
- [48] Global Risk Institute, 12 November 2026, checked 4 December 2026
- [49] Cryptography Incident Review Group, 30 November 2026, checked 4 December 2026
- [50] NIST, March 2025, checked 4 December 2026
- [51] IACR Cryptology ePrint Archive, 30 July 2022, checked 4 December 2026
- [52] KyberSlash team (Bernstein et al.), 15 January 2025, checked 4 December 2026
- [53] tldr.fail, checked 4 December 2026
- [54] NIST CSRC, 27 October 2026, checked 4 December 2026
- [55] The White House, 22 June 2026, checked 4 December 2026
- [56] UK National Cyber Security Centre, 20 March 2025, checked 4 December 2026
