1
$\begingroup$

the encrypt code is "ARJHNRIUCGQHPFGQFHTXPDEHTLNOC", and the part that i ​know of the plaintext is "DERUNA".

The key is period of 2, so the key are 2 letters. Each letter of the code would specify in turn the magnitude of the cyclical shift.

How i can find the key? And how I can break the cipher?

I have to create a program in c++ that automatically decrypt the message.

$\endgroup$
2
  • $\begingroup$ Well, that is known as the known-plaintext attack. just use the first two letters to find the key? Text is dCode Vigenere automatically See dcode.fr/vigenere-cipher $\endgroup$ – kelalaka Apr 13 at 8:46
  • $\begingroup$ Hint: Write down the relation between the plaintext and the ciphertext for the first letter, see how you can deduce the key from that. Repeat it for the second letter. Use the key to recover the message and the remaining plaintext to validate your key. $\endgroup$ – SEJPM Apr 13 at 9:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.