CPE 645 / CS 685
Applied Cryptography

Hill Cipher

A linear cipher that multiplies blocks of letters by a matrix mod 26.

Polygraphicdemo
Objectives
  • Encrypt and decrypt a block with an n × n key matrix mod 26.

  • Determine whether a matrix is a usable key from its determinant mod 26.

  • Explain why linearity lets a known-plaintext attack recover the key.


Static site. Every demo computes in your browser, and nothing you type is sent anywhere.