Skip to content

alkhaled/HillCipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HillCipher

Cryptanalysis of the HillCipher

Usage: java Hillcipher knownCipherText knownClearText unknownCiphertext

This program finds the key using a known cipher text attack. Given a cipher text Ci and cleartext Cl we can obtain the key used to generate Ci through the operation:

key = inverse(Cl) * Ci

this key is then used to decrypt the file.

Currently the program needs the key size to be known to decrypt. It also cannot invert a non-square matrix.

About

Cryptanalysis of the HillCipher

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages