cryptography: the study of methods for encrypting and decrypting secret messages.
encryption: the process of transforming a plaintext message into ciphertext to make it secret.
decryption: the process of recovering the original plaintext from the ciphertext.
encryption key: a parameter that determines which specific encryption transformation from a family of transformations is used.
shift cipher: a cipher that encrypts the plaintext letter p as (p+k)mod26 for an integer key k.
affine cipher: a cipher that encrypts the plaintext letter p as (ap+b)mod26 where gcd(a,26)=1.
monoalphabetic / character cipher: a cipher that encrypts individual characters one at a time.
block cipher: a cipher that transforms blocks of characters into blocks of characters.
transposition cipher: a block cipher that encrypts a block by permuting its positions using a permutation σ.
cryptanalysis: the process of recovering plaintext from ciphertext without knowledge of the key or encryption algorithm.
cryptosystem: a five-tuple (P,C,K,E,D) consisting of plaintext strings P, ciphertext strings C, keyspace K, encryption functions E, and decryption functions D.
private key encryption: cryptosystems where both encryption and decryption keys must be kept secret.
public key encryption: cryptosystems where encryption keys are publicly available, but decryption keys are secret.
RSA cryptosystem: a public key cryptosystem where n=pq, e is coprime to (p−1)(q−1), encryption is C=Memodn, and decryption is M=Cdmodn with de≡1(mod(p−1)(q−1)).
key exchange protocol: a protocol (such as Diffie-Hellman) enabling two parties to establish a shared secret key over an insecure channel.
digital signature: a mechanism (e.g., using RSA decryption with a sender's private key) that allows a recipient to verify the authenticity and sender of a message.
Key Results
The Division Algorithm: Let a be an integer and d a positive integer. Then there are unique integers q and r with 0≤r<d such that a=dq+r.
Divisibility Properties: If a∣b and a∣c, then a∣(b+c); if a∣b, then a∣bc; if a∣b and b∣c, then a∣c.
Linear Combination Divisibility: If a∣b and a∣c, then a∣(mb+nc) for all integers m,n.
Base b Representation Theorem: Let b>1 be an integer. Then every positive integer n can be uniquely expressed in base b as n=akbk+ak−1bk−1+⋯+a1b+a0.
The Fundamental Theorem of Arithmetic: Every integer greater than 1 can be written uniquely as a prime or as the product of two or more primes in nondecreasing order.
Prime Divisor Bound: If n is a composite integer, then n has a prime divisor less than or equal to n.
Infinitude of Primes: There are infinitely many prime numbers.
The Prime Number Theorem: The ratio of the number of primes not exceeding x and x/lnx approaches 1 as x→∞.
GCD and LCM Formulae via Prime Factorizations:gcd(a,b)=∏pimin(ai,bi),lcm(a,b)=∏pimax(ai,bi).
Product Identity: For positive integers a and b, ab=gcd(a,b)⋅lcm(a,b).
Euclidean Algorithm Property: If a=bq+r, then gcd(a,b)=gcd(b,r).
Bézout's Theorem: If a and b are positive integers, then there exist integers s and t such that gcd(a,b)=sa+tb.
Euclid's Lemma: If a,b,c are positive integers with gcd(a,b)=1 and a∣bc, then a∣c. If p is prime and p∣a1a2…an, then p∣ai for some i.
Modular Division Cancellation: If ac≡bc(modm) and gcd(c,m)=1, then a≡b(modm).
Modular Inverse Existence: If gcd(a,m)=1 and m>1, then a has a unique inverse modulo m.
The Chinese Remainder Theorem: A system of linear congruences x≡ai(modmi) with pairwise relatively prime moduli m1,…,mn>1 has a unique solution modulo m=m1m2…mn.
Fermat's Little Theorem: If p is prime and p∤a, then ap−1≡1(modp), and for every integer a, ap≡a(modp).