stack-overflow-copy-paste icon indicating copy to clipboard operation
stack-overflow-copy-paste copied to clipboard

Finding key of hill cipher (key of 2 x 2 matrix) given plaintext and ciphertext

Open singhrohan62 opened this issue 6 years ago • 0 comments

Hi @kentcdodds , I would like to add function for finding key (for this issue, I would like to implement key matrix of order 2). The stackoverflow link for the function is not availablehttps://stackoverflow.com/questions/3997908/understanding-the-hill-cipher-algorithm However, I would like to implement it. I think the function should have two strings each of length 4 and it would return a string of same length as of plaintext and ciphertext.

So, findKey("miss","cikk") would return "byzr"

singhrohan62 avatar Feb 19 '19 19:02 singhrohan62