cancanbay / HillCipherJava

Repository from Github https://github.comcancanbay/HillCipherJavaRepository from Github https://github.comcancanbay/HillCipherJava

This is the implementation of Hill-Cipher encryption via Java language.

Program has 2 options, encryption and decryption by Hill-Cipher.

If you just want to see the encryption or decryption matrix (key) input word does not matter.

To run the program:

  • Run Main.java, type 1 for encryption 2 for decryption and then enter the word and 2x2 hill-cipher matrix' elements.
If option is decryption and one or more elements of matrix' that does not have inverse values at modulo 26, program outputs decryption key is not allowed to decrypt that text.