Hill Cipher Encryption and Decryption

Initializing live version
Download to Desktop

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.



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send