Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.
This repository was archived by the owner on Feb 20, 2019. It is now read-only.

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

Description

@singhrohan62

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions