It's given that a string, encoded in hex format, is obtained by XOR encryption of a plain text and a key. The key is unknown (not even the length). What are the steps that I should follow to get the plain text? Since I am new to this, I am unaware of the tools to be used.

Example: Crack the following hex encoded string, obtained by XOR cipher:

PS: I know that by applying XOR on the cipher text with the key will give me back the plain text. How should I proceed, if I don't know the key?

  • 2
    $\begingroup$ please see, one-time pad $\endgroup$ – kelalaka Sep 28 '18 at 9:24
  • $\begingroup$ Note that - specific to this question - the key and plaintext start with the same byte values: that's the only way that the first bytes can be zero after all. The key is most likely binary, not hexadecimal. Hexadecimals can be used to represent binary values. $\endgroup$ – Maarten Bodewes Oct 1 '18 at 15:02

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.