Ciphers, encoding, hashing, and public key cryptography.
Examines symmetric and asymmetric cryptosystems. Caesar (\(c \equiv p + k \pmod{26}\)) and Vigenère polyalphabetic ciphers vs modern public-key cryptography. RSA relies on the computational hardness of factoring large semiprimes \(n = pq\): public key \((e, n)\), private key \(d \equiv e^{-1} \pmod{\phi(n)}\), encryption \(c \equiv m^e \pmod n\), decryption \(m \equiv c^d \pmod n\). Diffie-Hellman establishes shared secret keys over insecure channels via discrete logarithms \(g^{ab} \pmod p\).
Shifts each letter by a fixed amount. ROT13 is a shift of 13.
Uses a keyword to shift letters by varying amounts.
Encodes binary/text data into ASCII strings.
Symmetric cipher. Apply XOR twice with the same key to recover the original text.
One-way functions used for data integrity.
Public-key cryptosystem. Uses Web Crypto API.