Hill Cipher

A polygraphic substitution cipher based on linear algebra. It encrypts blocks of letters using matrix multiplication with a key matrix.

How it works:

  • Uses matrix multiplication to encrypt blocks of letters
  • Key must be a 2×2 or 3×3 invertible matrix
  • Example: For 2×2, provide 4 numbers like "6,24,1,13"
  • Highly resistant to frequency analysis due to block encryption