Hill Cipher Encryption and Decryption

Requires a Wolfram Notebook System
Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.
In a Hill cipher encryption, the plaintext message is broken up into blocks of length according to the
matrix chosen. Each block of plaintext letters is then converted into a vector of numbers and is dotted with the matrix. The results are then converted back to letters and the ciphertext message is produced. For decryption of the ciphertext message, the inverse of the encryption matrix must be found. Once found, the decryption matrix is then dotted with each
-block of ciphertext, producing the plaintext message.
Contributed by: Greg Wilhelm (March 2011)
Open content licensed under CC BY-NC-SA
Snapshots
Details
Due to the nature of the algorithm used, spaces and punctuation are lost in encryption.
Permanent Citation
"Hill Cipher Encryption and Decryption"
http://demonstrations.wolfram.com/HillCipherEncryptionAndDecryption/
Wolfram Demonstrations Project
Published: March 7 2011