The first cipher to encrypt several letters at once. Blocks of n letters become a vector, multiplied by an n×n key matrix mod 26 — so changing one letter changes the whole block, and single-letter frequency analysis stops working.
C = K P mod 26 P = K^-1 C mod 26
Split the message into blocks of n letters and treat each as a column vector of numbers 0–25. Multiply by the key matrix K modulo 26 to get the ciphertext block.
Because every output letter depends on all n input letters, a single letter of plaintext no longer maps to a single letter of ciphertext. That is diffusion, and it is what breaks single-letter frequency analysis.
Decryption multiplies by K−1 mod 26, which exists only when gcd(det K, 26) = 1 — the same coprimality condition as the affine cipher, now applied to the determinant.
Lester Hill published this in 1929, and it was genuinely ahead of its time — the first practical cipher operating on blocks rather than single letters.
The tool shows the mechanism — the slides show why it is built that way.
The Hill cipher is where linear algebra and number theory meet. One-on-one tutoring makes determinants, adjugates and modular inverses concrete by putting them to work.