Hill cipher , known plaintext attack.
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I know the plaintext and ciphertext. I want to find the vector key which is used to encrypt the text.
here is the step I want to do.
- The convert the ciphertext and plaintext into matrix of n x n.
- Find the inverse of the matrix which is equal to MM-1..
- Use the function $k=p-c pmod26$ to get the keys. This function delivered from $C=Pcdot K pmod 26$.
anything else, I missed or wrong?
I cannot implement it in the code, not sure what wrong
cryptography
add a comment |Â
up vote
0
down vote
favorite
I know the plaintext and ciphertext. I want to find the vector key which is used to encrypt the text.
here is the step I want to do.
- The convert the ciphertext and plaintext into matrix of n x n.
- Find the inverse of the matrix which is equal to MM-1..
- Use the function $k=p-c pmod26$ to get the keys. This function delivered from $C=Pcdot K pmod 26$.
anything else, I missed or wrong?
I cannot implement it in the code, not sure what wrong
cryptography
Do you know the block size?
â Randall
Aug 24 at 3:42
There are several examples on this site and the cryptography stack exchange of KP-attacks on Hill ciphers. Look them up.
â Henno Brandsma
Aug 24 at 4:14
E.g. math.stackexchange.com/q/982030/4280 is one example.
â Henno Brandsma
Aug 24 at 4:17
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I know the plaintext and ciphertext. I want to find the vector key which is used to encrypt the text.
here is the step I want to do.
- The convert the ciphertext and plaintext into matrix of n x n.
- Find the inverse of the matrix which is equal to MM-1..
- Use the function $k=p-c pmod26$ to get the keys. This function delivered from $C=Pcdot K pmod 26$.
anything else, I missed or wrong?
I cannot implement it in the code, not sure what wrong
cryptography
I know the plaintext and ciphertext. I want to find the vector key which is used to encrypt the text.
here is the step I want to do.
- The convert the ciphertext and plaintext into matrix of n x n.
- Find the inverse of the matrix which is equal to MM-1..
- Use the function $k=p-c pmod26$ to get the keys. This function delivered from $C=Pcdot K pmod 26$.
anything else, I missed or wrong?
I cannot implement it in the code, not sure what wrong
cryptography
edited Aug 24 at 15:49
Henno Brandsma
92.5k342100
92.5k342100
asked Aug 24 at 3:34
Da Born
81
81
Do you know the block size?
â Randall
Aug 24 at 3:42
There are several examples on this site and the cryptography stack exchange of KP-attacks on Hill ciphers. Look them up.
â Henno Brandsma
Aug 24 at 4:14
E.g. math.stackexchange.com/q/982030/4280 is one example.
â Henno Brandsma
Aug 24 at 4:17
add a comment |Â
Do you know the block size?
â Randall
Aug 24 at 3:42
There are several examples on this site and the cryptography stack exchange of KP-attacks on Hill ciphers. Look them up.
â Henno Brandsma
Aug 24 at 4:14
E.g. math.stackexchange.com/q/982030/4280 is one example.
â Henno Brandsma
Aug 24 at 4:17
Do you know the block size?
â Randall
Aug 24 at 3:42
Do you know the block size?
â Randall
Aug 24 at 3:42
There are several examples on this site and the cryptography stack exchange of KP-attacks on Hill ciphers. Look them up.
â Henno Brandsma
Aug 24 at 4:14
There are several examples on this site and the cryptography stack exchange of KP-attacks on Hill ciphers. Look them up.
â Henno Brandsma
Aug 24 at 4:14
E.g. math.stackexchange.com/q/982030/4280 is one example.
â Henno Brandsma
Aug 24 at 4:17
E.g. math.stackexchange.com/q/982030/4280 is one example.
â Henno Brandsma
Aug 24 at 4:17
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2892752%2fhill-cipher-known-plaintext-attack%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Do you know the block size?
â Randall
Aug 24 at 3:42
There are several examples on this site and the cryptography stack exchange of KP-attacks on Hill ciphers. Look them up.
â Henno Brandsma
Aug 24 at 4:14
E.g. math.stackexchange.com/q/982030/4280 is one example.
â Henno Brandsma
Aug 24 at 4:17