Hill Ciphers
Key
Size
Plaintext
mod 26 (a-z)
mod 31 (a-z⎵.?!/)
mod 59 (a-zA-Z⎵.?!/,')
Key not valid (try different key or size)
Key valid!
Encryption Matrix
Decryption Matrix
Ciphertext
Decrypted
How 2 Playground
Enter a key (any text)
Enter a size for the matrix (any positive #)
Choose a modulus to run with: this determines which set of letters you can use:
26 for the lowercase alphabet
31 for all of 26, plus space, ?, !, /
59 for all of 31, plus the uppercase alphabet and comma and apostrophe
Check if those produce a valid key combination (i.e. it is possible to construct a decryption matrix!)
Play with the plaintext
or
the ciphertext and watch everything change around them!
Part of my
High School Linear Algebra final project