What this section is about
Understand the foundations, and the building makes sense.
- Number theory and elliptic curves: the roots of classical public-key crypto
- Why hashes and symmetric crypto survive the quantum era largely intact
- Intuition and constructions for advanced primitives like zero-knowledge proofs
Subcategories
Articles in this section
The AEAD Idea: Encryption Must Ship With Tamper Resistance
Encryption that provides confidentiality without integrity has been dismantled again and again by padding oracles and tampering attacks. AEAD merges confidentiality and integrity into a single primitive and signs the context in as associated data — the default shape of encryption in modern protocols.
AEADAuthenticated EncryptionIntegrityAES-GCM
The AES Competition: How an Open Selection Rebuilt Trust in Standards
In 1997 NIST abandoned the closed-door way of making standards and made the selection of the next encryption standard fully public: worldwide submissions, public attacks, public debate. The winning algorithm, Rijndael, became AES — and the procedural fairness of that contest changed cryptography more deeply than the algorithm itself.
AESRijndaelNISTopen selection
Walking Through the AES Round Function: How Four Steps Stir One Byte Across the Whole Block
SubBytes creates nonlinearity, ShiftRows moves positions, MixColumns mixes, AddRoundKey injects the key — a step-by-step dissection of the four actions in every AES round, and how confusion and diffusion divide the labor on a 4×4 byte matrix.
AESRound FunctionS-boxMixColumns
BAN Logic: Interrogating a Protocol with Belief Reasoning
Proposed in 1989 by Burrows, Abadi, and Needham, BAN logic turns protocol analysis into reasoning about who believes what. This article explains its basic constructs, the problems it found, and the criticisms it later attracted.
BAN logicformal analysisauthentication protocols
An Introduction to Bilinear Pairings: Turning Two Points into One Number
The pairing is the most unusual operation in the elliptic-curve toolbox: it maps elements of two groups into a third while preserving bilinearity. This article qualitatively explains the definition and origins of pairings and their three classic applications — Joux's three-party key exchange, BLS short signatures and aggregation, and identity-based encryption — and their two sides of the same coin with the MOV attack.
Bilinear PairingsBLS SignaturesIdentity-Based Encryption
Blind Signatures: Signing a Document the Signer Cannot See
A blind signature lets a requester 「cover」 a message before sending it for signing; the signer stamps it without knowing the content, and after unblinding the signature is still valid. This article explains Chaum's original construction, the two properties of blindness and unlinkability, and its place in electronic cash and anonymous credentials.
Blind SignaturesDavid ChaumAnonymous CredentialsPrivacy
The Chinese Remainder Theorem: Splitting Big Problems into Small Congruences
Starting from the classic counting problem in the Sunzi Suanjing, this article states the Chinese remainder theorem, sketches its constructive proof and uniqueness condition, and shows why it appears in settings as different as RSA acceleration and polynomial interpolation.
number theoryChinese remainder theoremcongruencesRSA
How Curve Parameters Are Chosen: The P-256 versus secp256k1 Divide
A deployed elliptic curve must fix five sets of parameters: the field, the coefficients, the base point, the order and the cofactor. This article contrasts the choices made by NIST P-256 and by secp256k1, used in Bitcoin, and lists the verifiable security criteria — resistance to Pohlig–Hellman and MOV among them — together with the trust problem in parameter generation.
Elliptic CurvesP-256secp256k1Parameter Selection
Modes of Operation Compared: The Lesson of ECB and the Division of Labor Among CBC, CTR, and GCM
A block cipher handles 128 bits at a time; how to encrypt long messages is the job of a mode of operation. ECB leaks patterns by encrypting blocks independently, CBC chains, CTR counts, and GCM adds authentication on top of the counter — pick the wrong mode and the strongest algorithm is wasted.
Modes of OperationECBCBCCTRGCM
Choosing DH Groups and Parameters: Safe Primes, Curves, and Named Groups
Half of Diffie–Hellman's security lives in the protocol, the other half in the parameters: pick the wrong group and no protocol elegance will save you. This article covers safe primes and subgroup traps in finite-field DH, the selection logic for elliptic-curve groups, and why modern protocols allow only named groups.
Diffie-HellmanFinite FieldsNamed GroupsParameter Selection
The Classic Shapes of Protocol Attacks: Replay, Man-in-the-Middle, Downgrade, Reflection
Protocol attacks rarely defeat the algorithms themselves; they exploit how messages are arranged. This article surveys five classic shapes — replay, man-in-the-middle, downgrade, reflection, and interleaving — plus unknown-key-share, and the defensive shape each one calls for.
protocol attacksreplay attackman-in-the-middledowngrade attack
Bulletproofs and Range Proofs: Logarithmic-Size Interval Proofs Without a Setup
Proving that a secret value lies within an interval, without revealing the value itself, is a core need of confidential transactions and compliance proofs. Bulletproofs use an inner-product argument to compress a range proof to logarithmic size with no trusted setup; this article explains the problem it solves, the idea behind the construction, and its costs.
Bulletproofsrange proofsinner-product argument
Classical Ciphers: A Thousand Years of Substitution, Transposition, and Frequency Analysis
From the Caesar shift to the Vigenère polyalphabetic cipher, two ideas — substitution and transposition — ruled cryptography for two millennia; and the frequency analysis invented by al-Kindi first turned codebreaking into a systematic discipline.
classical ciphersfrequency analysisVigenère ciphercryptanalysis
A History of Collision Attacks: How MD5 and SHA-1 Left the Stage
From Wang Xiaoyun's team breaking MD5 in 2004, to SHAttered's first practical SHA-1 collision in 2017, to chosen-prefix collisions costing tens of thousands of dollars by 2020 — this history shows how collision attacks turn from theoretical blemishes into engineering incidents, and why standards bodies retire algorithms a decade early.
MD5SHA-1Collision Attacks
Computational Complexity and Reduction Proofs: How Security Conclusions Are Reasoned
Cryptography rarely proves «this scheme is secure» directly; it proves «breaking this scheme would solve a recognised hard problem». This article explains the complexity language — polynomial time, negligible probability — and the logical shape of reduction proofs, including what they do and do not guarantee.
Computational ComplexitySecurity ReductionsProvable Security
Continued Fractions and Small Private Exponents: The Lesson of Wiener's Attack
An RSA private exponent chosen too small is a disaster waiting to happen. This article explains, qualitatively and via continued-fraction approximation, why Wiener's attack recovers an undersized private exponent from the public key alone, and the lasting lesson it leaves for parameter selection.
number theorycontinued fractionsRSAWiener attack
Confusion and Diffusion: Shannon's Two Design Laws for Symmetric Ciphers
In 1949 Shannon proposed confusion and diffusion: make the key–ciphertext relationship too complex to peel apart, and spread each plaintext bit's influence across the whole output. These two principles remain the first yardstick for judging any block cipher.
ShannonConfusion and DiffusionBlock Cipher Design
DES: The First Data Encryption Standard and Its Controversies
Published in 1977, DES was the first public commercial encryption standard in history. Born from IBM's Lucifer algorithm, it emerged from the hands of the NSA with a shortened key and altered S-boxes — sparking a twenty-year crisis of trust, and giving birth to the open cryptography community.
DESencryption standardskey lengthpublic scrutiny
Curve Equations and the Group Law: Understanding Point Addition Through Geometry
First see what an elliptic curve looks like over the real numbers, then follow chords and tangents through point addition, doubling and the point at infinity, and finally understand why associativity holds and where the addition formulas come from.
Elliptic CurvesGroup LawGeometry
An ECDH Key Exchange Walkthrough: From Exchanged Public Keys to a Shared Secret
Dissect elliptic-curve Diffie–Hellman step by step: both parties generate key pairs, exchange public keys, each performs one scalar multiplication to arrive at the same point, and a KDF turns it into a session key; then see why small-subgroup and invalid-curve attacks force implementations to validate points.
ECDHKey ExchangeX25519
Edwards Curves and Ed25519: A Curve Shape Born for Implementation
Edwards curves trade a symmetric, elegant equation for complete addition formulas: no exceptional cases, no branches. This article explains the difference between the Edwards form and the twisted Edwards form, where Ed25519's parameters come from, and its kinship with Curve25519.
Edwards CurvesEd25519Elliptic Curves
ECDSA versus EdDSA: Two Signature Schemes with Different Temperaments
Both are elliptic-curve signatures, but ECDSA stakes its security on the randomness of every signature while EdDSA removes that landmine with deterministic derivation. This article compares their signing and verification equations, the history of nonce disasters, and their malleability differences, and explains why modern protocols keep defecting to EdDSA.
ECDSAEdDSADigital SignaturesEd25519
Elliptic Curves and ECDLP: The Hard Problem Behind Small Keys
Understand the elliptic-curve group law from the geometry of point addition, see why ECDLP lets a 256-bit curve match 3072-bit RSA, and why Shor's algorithm is just as fatal to it.
elliptic curvesECDLPCurve25519
ElGamal: Encryption Grown from the Discrete Logarithm, and Its Malleability
ElGamal turns the group operations of Diffie–Hellman into an encryption scheme: a clean construction, naturally randomized, and naturally malleable. This article walks through its construction, its kinship with DH, where its semantic security comes from and where it breaks down, and its descendants in signatures and homomorphic directions.
ElGamalDiscrete LogarithmMalleabilitySemantic Security
Enigma and Bletchley Park: Attack and Defense in the Age of Machine Ciphers
Germany's Enigma carried classical substitution to the summit of the electromechanical age; the Polish mathematicians' head start, Turing and Welchman's Bombe, and the human errors of German operators together wrote the most famous cryptologic battle in history.
EnigmaBletchley ParkTuringcryptanalysis
The Fiat–Shamir Transform: Replacing the Verifier's Random Challenge with a Hash
Turn an interactive proof into a piece of standalone, independently verifiable evidence: the challenge no longer comes from the verifier's coin but from hashing the statement and the commitment. This article explains how the transform works, its security argument in the random oracle model, and the pitfalls most often hit in deployment.
Fiat-Shamirnon-interactive proofsrandom oracle
Extended Euclid and Modular Inverses: The Universal Wrench of Cryptographic Engineering
Computing modular inverses is the most frequent low-level operation in key generation and signature verification. This article explains the Euclidean algorithm, its extension and Bézout's identity, and compares inversion via Fermat's little theorem in terms of applicability and engineering trade-offs.
number theoryEuclidean algorithmmodular inverseBézout identity
Feistel vs SPN: The Two Structural Routes for Block Ciphers
A Feistel network trades 'one half stands still while the other is stirred' for identical encryption and decryption circuits; a substitution–permutation network processes the whole block every round. The two routes produced DES and AES, and shaped two generations of analysis and hardware character.
Feistel NetworkSPNDESStructural Design
Forward Secrecy: Mechanisms and Costs — Keeping Yesterday's Sessions Safe After a Key Leak
Forward secrecy guarantees that a future leak of long-term keys cannot open yesterday's sessions. This article explains the mechanisms it rests on — ephemeral keys, use-and-destroy, and ratcheting — and the taxes it collects: computation, state management, and structural concessions in 0-RTT and session resumption.
Forward SecrecyEphemeral KeysRatchetingSession Security
Finite Fields GF(p) and GF(2^n): The Two Most Used Finite Worlds
A finite field must have a prime power number of elements. This article explains the two main families: GF(p), the residue classes modulo a prime and the chassis of elliptic-curve cryptography; and GF(2^n), where bit strings are treated as polynomials — the workbench of AES and error-correcting codes — plus why no field GF(6) can exist.
Finite FieldsGalois FieldsAES
Groups, Rings, Fields: Intuition and Division of Labour in Cryptographic Algebra
Every cryptography textbook opens with groups, rings and fields. This article builds the intuition for what each structure licenses: groups govern one reversible operation, rings add a second operation, fields add division — and explains why each algorithm family picks its own home.
Abstract AlgebraGroup TheoryFinite Fields
From Diffie–Hellman to KEMs: A Shift of Interface Paradigm
DH is two-way, interactive, and 'negotiates' a key by group operations; a KEM is one-way, non-interactive, and has its key randomly generated by the encapsulator. Why the interface changed, and what that bought for security definitions and the post-quantum migration.
Diffie-HellmanKEMkey encapsulationML-KEM
Hashing in Commitments and Integrity: Seal It Now, Reveal It Later; Fingerprint First, Compare Later
Publish a value's hash now and show the original later, and you have the simplest cryptographic commitment: it stays hidden (hiding) and cannot be disowned (binding). The same mechanism in another costume is the integrity fingerprint behind software distribution and evidence logs. This article explains the principles and limits of both roles.
Commitment SchemesIntegrity CheckingHash Fingerprints
Why Hash Functions Survive: Security Margins in the Quantum Era
Preimage and collision resistance are different security goals, and Grover's algorithm buys only a square-root speedup — an accounting of SHA-256's actual quantum-era margin and the trivial countermeasure.
hash functionsGrover's algorithmSHA-256
Why HMAC Is Built the Way It Is: The Reasoning Behind Two Layers and Two Constants
HMAC looks like merely hashing key and message together twice, but every detail — the ipad and opad constants, the inner-then-outer nesting, pre-hashing over-long keys — answers a specific failure mode. This article takes apart the 1996 design that remains the default answer for MACs.
HMACMessage AuthenticationKeyed Hashing
Hybrid Encryption: The KEM/DEM Division of Labour
Public-key operations are slow and can encrypt only short data; symmetric encryption is fast but needs a shared key first. Hybrid encryption joins the two: a KEM establishes a session key, and a DEM uses it to encrypt data of arbitrary length. This article explains the structure of the paradigm and its composition conditions.
Hybrid EncryptionKEMDEMAEAD
Design Principles for Hybrid Post-Quantum Key Exchange: Combining Classical and PQC into One Key
The safest key exchange for the migration era is not either/or but both: run classical DH and a post-quantum KEM together so security is the union of the two. This article sets out four design principles — the combiner must bind all material, transcript binding blocks downgrade, budget for size and latency, and know when the classical half can retire.
Hybrid Key ExchangeML-KEMPost-Quantum MigrationX25519MLKEM768
IND-CPA and IND-CCA: The Yardsticks of Public-Key Encryption
What does it mean for an encryption scheme to be 「secure」? Modern cryptography answers with indistinguishability games: from passive eavesdropping to active tampering, how the IND-CPA and IND-CCA yardsticks tighten step by step, and why CCA security is today's pass mark.
Security DefinitionsIND-CPAIND-CCAProvable Security
Homomorphic Encryption: Computing Directly on Ciphertexts
Homomorphic encryption allows computation on ciphertexts whose decryption is exactly the result of the corresponding plaintext computation — the server never sees the data. This article explains the divide between partial and fully homomorphic encryption, why noise is the central problem of FHE, and the technology's real costs and place today.
Homomorphic EncryptionFully Homomorphic EncryptionComputation on CiphertextsPrivacy-Preserving Computation
Interactive Proof Systems: Completeness, Soundness, and the Dialogue Structure of Proofs
Treat a proof as a dialogue between prover and verifier: from the class IP and the two asymmetric probability bounds of completeness and soundness, to Arthur–Merlin protocols and public coins — and why interaction genuinely enlarges what can be proved.
interactive proofscomplexity theorycompleteness and soundness
Key Confirmation and Key Derivation: The Two Steps After the Exchange
Finishing the DH computation is not the same as finishing the handshake: the secret must first be processed by a KDF into real session keys, and both sides must prove they derived the same thing. This article explains where key derivation (extract and expand) and key confirmation (explicit and implicit) sit in the exchange flow, and where implementations commonly slip.
KDFHKDFKey ConfirmationKey Derivation
Key Length and the Margin After Grover: The Quantum Ledger for Symmetric Ciphers
Grover's algorithm compresses exhaustive key search from 2^n to about 2^(n/2) — which sounds like a halving, until it is converted into time and remains astronomical. This article settles the ledger: why AES-128's margin is still ample, why AES-256 is cheap long-term insurance, and where the real risks sit outside the ledger.
Grover's AlgorithmKey LengthAES-256Quantum Safety Margin
Linear Algebra: Why Lattices Speak in Vectors and Matrices
Every object in lattice-based cryptography — lattices, bases, closest vectors — is stated in linear algebra. From the mathematical side, this article explains vector spaces and basis changes, determinants as volume, «good» and «bad» lattice bases, dual lattices and orthogonalisation intuition, and why changing the basis of the same lattice changes the difficulty completely.
Linear AlgebraLatticesVector Spaces
The Merkle–Damgård Construction and Length Extension: A Structural Flaw in the Pipeline
MD5, SHA-1 and SHA-256 share one iterative skeleton: chop the message into blocks and compress them one by one. The design is simple and elegant, but it carries a structural weakness — given H(m), anyone can compute H(m‖padding‖suffix) without knowing m.
Merkle-DamgårdLength ExtensionSHA-256
MQV and Authenticated Key Exchange: Weaving Authentication into the Exchange Itself
Raw DH has no idea who it is talking to, and man-in-the-middle attacks are structural. The MQV family's idea is to cross static and ephemeral keys in a single computation so authentication grows from inside the exchange. This article traces the line from STS to MQV and HMQV, and the security goals of authenticated key exchange.
MQVHMQVAuthenticated Key ExchangeAKE
The Algebraic Structure of Modular Arithmetic: Residue Classes, the Unit Group and Euler's Theorem
Modular arithmetic is more than «taking remainders». Viewed structurally, congruence is an equivalence relation, the residue classes form a ring, the elements coprime to the modulus form a multiplicative group, and Euler's theorem is a corollary of Lagrange's theorem — the shared language behind RSA and the discrete logarithm problem.
Modular ArithmeticEuler's TheoremNumber Theory
The Shape of the Noise Protocol Framework: Assembling Handshakes from Blocks
Noise is not one protocol but a kit for assembling protocols: a handful of DH tokens, a set of handshake patterns, and a uniform symmetric state machine. This article takes Noise apart — tokens, pattern names, SymmetricState and CipherState — and explains why it became the foundation under WireGuard, Signal, and others.
NoiseWireGuardHandshake PatternsProtocol Framework
Number-Theory Roots: The Two Pillars of Classical Public-Key Cryptography
Starting from modular arithmetic and Euler's theorem, see why integer factorisation and the discrete logarithm are the shared foundation of RSA and Diffie–Hellman — with hand-worked small examples and a glimpse of the Chinese remainder theorem.
number theoryRSAdiscrete logarithm
Primality Testing: From Trial Division to Miller–Rabin
The first step in RSA key generation is producing large primes. This article explains the ceiling of trial division, why Carmichael numbers defeat the Fermat test, and how the Miller–Rabin probabilistic test trades a minuscule error probability for workable speed.
number theoryprimality testingMiller-RabinRSA
PGP and the Cypherpunks: When Encryption Left the Laboratory
In 1991 Phil Zimmermann released PGP, putting military-grade encryption onto ordinary people's computers; the export-control fight that followed, the cypherpunk movement, and its creed that 'cypherpunks write code' turned cryptography from a technical question into a civil-rights question.
PGPcypherpunksencryption policyprivacy
The Distribution of Primes: The Prime Number Theorem and Key-Space Intuition
How primes are distributed among the integers directly determines the cost of generating large primes at random and the size of the key space. This article uses the prime number theorem to build intuition for prime density and shows why random sampling plus primality testing is an efficient route to large primes.
number theoryprime number theoremprime distributionkey generation
Probability and the Birthday Bound: Cryptography's Counter-Intuitive Square Root
Among just 23 people, the chance that two share a birthday exceeds one half. This birthday paradox is a yardstick of cryptographic security: an n-bit hash offers only about n/2 bits of collision resistance. The article derives the bound, gives the approximation, and shows its use for hashes, randomness and password parameters.
ProbabilityBirthday AttackHash Collisions
Why Composing Protocols Is Dangerous: Safe Parts Do Not Guarantee a Safe Whole
Protocols that are each proven secure can undermine one another when composed. This article explains, qualitatively, the three main failure mechanisms — key reuse, missing context binding, and composition theorems — and the defences.
protocol compositiondomain separationUC framework
Principles of Protocol Design: Correct Algorithms, Broken Protocols
Starting from the Abadi–Needham principles of prudent engineering, this article lays out the disciplines that protocol design keeps re-validating: explicit messages, freshness, surfaced assumptions, failure-first thinking, and simplicity.
protocol designAbadi-Needham principlessecurity engineering
The Landscape of Protocol Verification Tools
ProVerif, Tamarin, Scyther, CryptoVerif, EasyCrypt — which model does each stand on, what can it prove, and at what cost? A selection map for protocol designers.
formal verificationProVerifTamarintools
Quadratic Residues and the Legendre Symbol: A Licence for Square Roots
Modulo a prime, not every number has a square root. This article explains the decision problem for quadratic residues, Euler's criterion, the computational rules of the Legendre symbol and quadratic reciprocity, and where this theory sits in proof systems and pseudorandom generation.
number theoryquadratic residuesLegendre symbolquadratic reciprocity
The Random Oracle Model: Treating a Hash Function as an Ideal Random Function
Many security proofs for signatures and encryption assume the hash function is a «random oracle»: returning a fresh random output for every new input, queryable by anyone. This article explains the model, why it makes proofs possible, classic uses such as Fiat–Shamir, and the famous gap between the model and real hash functions.
Random OracleHash FunctionsSecurity Models
The Rise of Elliptic Curve Cryptography: Harder Problems, Shorter Keys
In 1985, Miller and Koblitz independently brought elliptic curves into public-key cryptography. With keys far shorter than RSA's at equivalent security, elliptic curve cryptography won outright in the mobile Internet era, becoming the default choice for TLS, instant messaging, and code signing.
elliptic curvesECDHEd25519public-key cryptography
RSA and Hybrid Encryption: Public Keys Move Keys, Data Belongs to Symmetric Ciphers
Real systems never encrypt data with RSA directly: it only wraps a random symmetric key, while bulk data, streaming and integrity all belong to the symmetric layer. The two-layer structure, the KEM/DEM decomposition, and RSA's narrow role as key courier.
RSAhybrid encryptionKEM
RSA Key Generation: How Euler's Totient Forges a Key Pair
Walk through every step of RSA key generation, from choosing primes to deriving the private exponent: why φ(n) must stay secret, why e is almost always 65537, how d comes from a modular inverse — with a small example you can verify by hand.
RSAkey generationEuler totient
1976: The Public-Key Revolution — Diffie, Hellman, and the Birth of RSA
In 1976 Diffie and Hellman published 'New Directions in Cryptography,' proposing that confidential communication could be established with no pre-shared secret; the next year RSA supplied the first workable public-key scheme. The thousand-year problem of key distribution had, at last, a mathematical solution.
public-key cryptographyDiffie-HellmanRSAhistory of cryptography
RSA's Historical Place and Migration Legacy: The First Public-Key System's Merits and Farewell
From the 1977 MIT paper and patent, to default signature of the internet's trust system, to first entry on the post-quantum migration list. How RSA shaped the form of public-key infrastructure, and what its migration leaves behind — what travels, what stays.
RSAhistory of cryptographypost-quantum migration
RSA Key Length and Safety Margin: Why Bits Grow So Slowly, and Why They Must Grow
From the factored RSA-129 challenge to the modern RSA-250 record, factoring capability advances along two curves — algorithms and compute. How security strength is converted, why 1024 bits is out, where 2048 bits' margin lies, and why longer keys are a dead end against quantum computing.
RSAkey lengthinteger factoring
RSA's Known Attack Surface: The Roads That Bypass Factoring
Most successful attacks on RSA never touched factoring: common moduli, low-exponent broadcasts, related messages, shared prime factors and fault injection. A qualitative taxonomy organised by the deployment mistake each attack exploits.
RSAcryptanalysisattack surface
The Point of Padding: How OAEP and PSS Turn RSA into Real Cryptography
Padding is not about making messages longer — it is an encoding layer that injects randomness, structural checks and hash mixing before the exponentiation. The history of PKCS#1 v1.5 and Bleichenbacher's attack, and the design ideas behind OAEP and PSS.
RSAOAEPPSSpadding
Scalar Multiplication: How Double-and-Add Computes kP
Scalar multiplication is the engine of elliptic-curve cryptography. This article walks through binary double-and-add, the Montgomery ladder, windowing and NAF representations, and explains why side channels force implementations to make the operation sequence independent of the secret.
Elliptic CurvesScalar MultiplicationSide Channels
RSA Retires from Key Exchange in TLS: The Exit of One Role
Early TLS used RSA for key transport: the client generated a pre-master secret and sent it encrypted under the server's public key. That mode has no forward secrecy and dragged a Bleichenbacher oracle behind it for twenty years. Why it was removed — and why RSA's other half, signatures, stays.
RSATLSforward secrecy
Anatomy of the SHA-2 Family: Two Machines Behind Four Names
SHA-224, SHA-256, SHA-384 and SHA-512 look like four algorithms but are really two machines: a 32-bit-word SHA-256 and a 64-bit-word SHA-512, with the other members derived by changing initial values and truncating output. Understanding this family tree resolves half of all deployment selection questions.
SHA-2SHA-256SHA-512
Sigma Protocols: The Three-Move Shape of Commitment, Challenge, Response
Most practical zero-knowledge proofs share a single three-round skeleton: commit first, then receive a random challenge, then respond. This article dissects the structure of Sigma protocols, their special soundness and honest-verifier zero-knowledge properties, and how they underpin Schnorr proofs and identity authentication.
Sigma protocolsSchnorr proofzero-knowledge proofs
Signatures vs. Encryption: Two Things Pointing in Opposite Directions
「Encrypt with the private key, decrypt with the public key」 is one of the most widespread misconceptions. Signatures and encryption are opposites in goal, key flow, and security definition: encryption protects confidentiality and anyone may encrypt; signatures provide authenticity and only the key holder may sign. This article compares them point by point and explains the composition trap of sign-then-encrypt.
Digital SignaturesPublic-Key EncryptionAuthenticityNon-Repudiation
Shannon Entropy: Information, Uncertainty and Cryptography's Unit of Account
Shannon turned «uncertainty» into a computable quantity with a single formula. This article explains the definition and intuition of entropy, conditional entropy and mutual information, and how Shannon used this language to prove what perfect secrecy costs — while marking the line between «high entropy» and «cryptographically secure».
Information TheoryShannon EntropyPerfect Secrecy
From Shor's Algorithm to the Post-Quantum Turn: How a 1994 Paper Rewrote the Future of Cryptography
In 1994 Peter Shor proved that a quantum computer can factor large integers and compute discrete logarithms efficiently, shaking the foundations of RSA and elliptic curves at the same time. Over the thirty years since, the field moved from shock and skepticism to a systematic migration project — and that is where post-quantum cryptography comes from.
Shor's algorithmpost-quantum cryptographyquantum computingmigration
Slow Hashing and Password Storage: Why a Stored Password Hash Must Be Deliberately Slow
Ordinary hashes are designed to be fast; password storage needs exactly the opposite — slow, memory-hungry, and salted per user. This article explains how the offline-cracking threat model shaped bcrypt, scrypt and Argon2. Principles only; the hands-on implementation lives in the tutorials section.
Password StorageArgon2Slow Hashing
The Sponge Construction and SHA-3: Why the New Generation Changed Course
SHA-3 does not reuse SHA-2's iterative compression skeleton. Keccak's sponge absorbs input and squeezes out output while most of its internal state never sees daylight — both a diversity hedge and a direct answer to structural lessons like length extension.
SHA-3KeccakSponge Construction
Static vs. Ephemeral DH: One Key for a Session, or for a Lifetime
The same DH operation yields entirely different security and engineering properties depending on whether the private key is a long-term fixture or generated fresh per session. This article compares static and ephemeral DH on forward secrecy, authentication, performance, and key management — and explains why the hybrid design won.
Static DHEphemeral DHECDHEForward Secrecy
The Symbolic Model: Treat Cryptography as a Black Box, Audit the Protocol's Logic
The Dolev–Yao model abstracts encryption and signatures into perfect algebraic operations so analysts can focus on flaws in message choreography. This article explains its intuition, its limits, and its division of labour with the computational model.
formal analysisDolev-Yao modelsymbolic model
Stream Ciphers and ChaCha20: Encryption Without Blocks
A stream cipher does not cut data into blocks; it generates a keystream as long as the plaintext and masks it byte by byte. ChaCha20 weaves that stream from additions, rotations, and XORs, becoming the best software answer where AES hardware acceleration is absent.
Stream CipherChaCha20Keystream
Why Textbook RSA Must Never Be Used As-Is
Raising a message directly to a power — 'textbook RSA' — is mathematically sound and a security sieve: determinism invites guessing, multiplicative homomorphism invites tampering, and small messages with small exponents never even meet the modulus. A defect-by-defect anatomy.
RSAtextbook RSAsemantic security
Threshold Cryptography: Splitting One Private Key Among Many Keepers
A single private key means a single point of compromise. Threshold cryptography uses secret sharing to split a private key into n shares; any t of them can jointly sign or decrypt, while fewer than t learn nothing. This article explains the (t, n) threshold idea, how Shamir sharing differs from threshold signatures, and the real costs involved.
Threshold SignaturesSecret SharingShamirMultiparty Computation
Reading TLS 1.3 as a Protocol Design Case Study
Rather than another walkthrough of the message flow, this article reads TLS 1.3 from the protocol analyst's viewpoint: deleting options, mandatory forward secrecy, the transcript hash everywhere, the 0-RTT trade-off, and how formal analysis intervened in the design process.
TLS 1.3protocol designcase study
Trapdoor One-Way Functions: A Door That Opens from One Side Only
A one-way function is easy to compute and hard to invert; add a trapdoor, and whoever holds the secret can invert it with ease. This article explains the trapdoor idea, how RSA and lattice constructions realize it, and why one-wayness is only the starting point of public-key cryptography, not the whole of it.
Trapdoor FunctionsOne-Way FunctionsRSAPublic-Key Cryptography
Version Negotiation and Downgrade: How Flexibility Becomes Attack Surface
From SSL 3.0 fallback through POODLE, FREAK, Logjam, and DROWN, downgrade attacks exploit one recurring weakness: unauthenticated negotiation. This article walks through that history and the countermeasures, including TLS 1.3's downgrade sentinels.
downgrade attacksversion negotiationTLS history
Why Discrete Logarithms Are Hard: From Baby-Step Giant-Step to Index Calculus
A modular exponentiation finishes in an instant, yet inverting it is forbiddingly hard. This article explains where the difficulty of the discrete logarithm problem comes from, the ladder of known classical algorithms (brute force, BSGS, Pollard rho, index calculus), and how the choice of group determines real-world security strength.
number theorydiscrete logarithmDiffie-Hellmanalgorithm complexity
Why Lightweight Cryptography Exists: Arithmetic for a Coin Cell
When the thing being encrypted is an RFID tag, a sensor, or a microcontroller, the circuit area and energy cost of AES can be the product's life-or-death line. Lightweight cryptography is not 'AES lite' but a design discipline that re-solves the problem under hard constraints of gates, energy, and throughput — and ASCON's selection as a NIST standard is its coming of age.
Lightweight CryptographyASCONIoTConstrained Devices
Zero-Knowledge Proofs: Proving a Statement While Revealing Nothing
Starting from completeness, soundness and zero-knowledge, through the Ali Baba cave, to the Fiat–Shamir transform, zk-SNARKs, and where zero-knowledge meets post-quantum cryptography.
zero-knowledge proofsFiat-Shamirzk-SNARK
zk-SNARKs and the Trusted Setup: Where the Price of Succinct Proofs Comes From
A zk-SNARK can compress a proof of an arbitrary computation into a few hundred bytes verified in milliseconds — and the price, for most constructions, is a trusted setup ceremony. This article explains, qualitatively, where succinctness comes from, what exactly a trusted setup asks you to trust, how ceremonies spread that trust, and how universal setups differ from transparent alternatives.
zk-SNARKtrusted setupsuccinct proofs
Zero-Knowledge Proofs in Identity and Compliance: Proving Only the One Thing That Needs Proving
The classic dilemma of identity verification and compliance review is over-collection: to confirm a single attribute, you hand over an entire document. Zero-knowledge proofs offer another path — selective disclosure, predicate proofs of age and eligibility, anonymous credentials. This article maps their real uses in identity and privacy compliance, and their deployment boundaries.
anonymous credentialsselective disclosureprivacy compliance
zk-STARKs and Transparency: Hashes Only, No Trusted Setup
A STARK rebuilds the succinct proof of a SNARK as a fully transparent system: public randomness comes from hashing, there are no secret parameters, no ceremony, and no lifeline. This article explains what transparency actually promises, what the construction rests on, the price of larger proofs, and why it is naturally quantum-resistant.
zk-STARKtransparent proofspost-quantum security