Apex › Cryptography
One number, many remainders (Chinese Remainder Theorem)
A number below M = m₁·m₂·… (coprime moduli) is uniquely pinned by its remainders — a collision-free fingerprint. CRT reconstructs it as x = Σ rᵢ·eᵢ mod M, where each basis element eᵢ is ≡1 at its own modulus and ≡0 at the others (for 3·5·7: e = 70, 21, 15). Verified in node: reconstruction satisfies every congruence, the solution is unique in [0,M), and the round-trip is exact. Powers RSA decryption (~4× faster, mod p and mod q separately) and carry-free residue arithmetic. Dial the remainders mod 3, 5, 7 and watch the unique number appear.
More in Cryptography
- Cryptography
- Classical ciphers
- One-time pad
- AES internals
- ECB penguin / modes
- Feistel / DES
- CTR & AEAD
- ChaCha20
- Poly1305 MAC
- Timing attacks
- SHA-256 internals
- Broken hashes
- Length-extension attack
- HMAC
- Padding oracle attack
- Montgomery multiplication
- How public-key crypto works
- RSA
- Is this number prime? (Miller–Rabin)
- Finding a factor by accident (Pollard’s rho)
- Dividing mod m (extended Euclid & the modular inverse)
- Elliptic curves
- Exponentiation that doesn’t leak (Montgomery ladder)
- ECDSA & nonce reuse
- Square roots mod a prime (Tonelli–Shanks)
- EdDSA (Ed25519)
- Pedersen commitment
- Blind signatures
- Verifiable random function
- Oblivious transfer
- Compute on secrets (Yao garbled circuits)
- Hiding what you access (Path ORAM)
- Fetching a record privately (PIR)
- Homomorphic (Paillier)
- ElGamal encryption
- Zero-knowledge (Schnorr)
- One signature for a thousand signers (BLS aggregation)
- Proving a huge sum cheaply (sumcheck)
- A clock you can’t rush (verifiable delay function)
- Diffie–Hellman
- Cracking a discrete log (baby-step giant-step)
- DH man-in-the-middle
- TLS downgrade
- How HTTPS secures a connection
- Password hashing
- Post-quantum (LWE)
- How LLL reduces a lattice (& breaks crypto)
- NTT (Kyber engine)
- Quantum key (BB84)
- Secret sharing
- Envelope encryption (KMS)
- Verifiable secret sharing
- Threshold signatures
- Proof of Work
- Double Ratchet
- X3DH key agreement
- MLS / TreeKEM (group messaging)
- Merkle tree
- A whole set in one number (RSA accumulator)
- Lamport signatures
- Hash chain