Cryptography articles

Number TheoryHow to Solve Linear CongruencesFollow a clear method for solving ax ≡ b mod m, including when no solution exists and when there are several, with checked examples.Number TheoryFermat's Little Theorem With Proof and UsesUnderstand why a to the power p minus 1 leaves remainder 1 modulo a prime, with two proofs, worked uses and a warning about the converse.Number TheoryEuler's Theorem and the Totient FunctionCompute the totient function, prove Euler's theorem and see how it tames huge powers and makes a small RSA example work.Number TheoryWilson's Theorem and Its Short ProofProve that (p − 1)! leaves remainder −1 exactly when p is prime, see the pairing trick in action and learn what the result is good for.Number TheoryThe Chinese Remainder Theorem and How to Apply ItCombine remainder conditions into one answer, with two solving methods, a rule for moduli that share factors and practical applications.Number TheoryQuadratic Residues and the Legendre SymbolLearn which remainders are squares modulo a prime, how Euler's criterion and the Legendre symbol decide it, and how to compute quickly.Number TheoryQuadratic Reciprocity, Gauss's Golden TheoremLearn what the law of quadratic reciprocity says, use it to test squares modulo a prime, and see the lattice-point idea behind a proof.Number TheoryPrimitive Roots and the Discrete LogarithmFind generators modulo a prime, read exponents backward as discrete logarithms, and see why that reversal matters in cryptography.Number TheoryCheck Digits, How Modular Arithmetic Catches Typing ErrorsWork through the check digits on barcodes, books, cards and bank accounts, and learn which typing mistakes each scheme can and cannot catch.Number TheoryHow to Find the Last Digits of an Enormous PowerUse cycles, repeated squaring, Euler's theorem and the Chinese remainder theorem to get the final digits of huge powers by hand.