Hill Cipher Encoder/Decoder

Encrypt and decrypt text using the Hill cipher, a polygraphic substitution cipher based on matrix multiplication. Supports 2x2 and 3x3 key matrices with modular arithmetic.

How to Use Hill Cipher Encoder/Decoder

Enter text to encrypt or decrypt, choose a matrix size (2x2 or 3x3), provide the key matrix as comma-separated values, and select encrypt or decrypt mode. The tool performs matrix multiplication mod 26.

Step-by-Step Instructions

  1. Enter plaintext or ciphertext (letters only)
  2. Select matrix size and enter key values
  3. Choose encrypt or decrypt mode
  4. Click the button to process and copy the result

Related Tools

More Free Tools