Hill Ciphers


Plaintext

Key not valid (try different key or size) Key valid!

Encryption Matrix

Decryption Matrix

Ciphertext

Decrypted

How 2 Playground

  1. Enter a key (any text)
  2. Enter a size for the matrix (any positive #)
  3. Choose a modulus to run with: this determines which set of letters you can use:
  4. Check if those produce a valid key combination (i.e. it is possible to construct a decryption matrix!)
  5. Play with the plaintext or the ciphertext and watch everything change around them!
Part of my High School Linear Algebra final project