AB
aiBytes
125 tools in one library
Live workspace

Hill Cipher

Encrypt with matrix-based modular arithmetic and invertibility checks.

Classical Ciphers
Input

Hill Cipher

Encrypt or decrypt text with a 2×2 key matrix using modular arithmetic.

  • The key matrix must be invertible mod 26 for decoding.
  • The backend expects JSON like [[6,24],[1,13]].
  • Non-letter characters are stripped before the transform.
Status
Waiting for input
Output

Hill cipher result

Review the transformed text and copy the output you want to keep.

Output preview

The transformed output will appear here together with the selected mode.