Re: decrypting a XOR of two plaintexts

From: Joe Peschel (jpeschel_at_no.spam.org)
Date: 04/01/04


Date: Wed, 31 Mar 2004 23:51:59 -0000

Korejwa <korejwa@tiac.net> wrote in
news:opr5q1f7ayyzibhw@news.west.earthlink.net:

> On Wed, 31 Mar 2004 20:26:04 -0000, Joe Peschel <jpeschel@no.spam.org>
> wrote:
>>
>> If you have the plaintext and the associated ciphertext, you can XOR
>> the plaintext against the ciphertext and recover the keystream. If
>> the keystream is the same for every message, you can XOR the
>> keystream against
>> the incoming ciphertext traffic and recover the plaintext.
>>
>> If you have two ciphertext messages encrypted by the same keystream,
>> you can XOR the two together. Take the resultant message and drag a
>> crib through it to recover one plaintext message. Then XOR one of the
>> recovered
>> plaintext messages with the ciphertext to get the keystream.
>>
>
> Joe Peschel:
>
> If you have two plaintext messages XORed together, how do you decrypt
> them?

If you have two plaintext messages, there is no need to decrypt them. They
are already decrypted. Maybe I don't understand your question.

>
> I have no idea what you mean by "drag a crib through it." Could you
> explain this a little better?
>

Crib-dragging is akin to known-plaintext attacks, except the plaintext
isn't actually known. It's guessed. You assume probable words in the
plaintext, for instance, _the_ and _that_, and then move them along the
ciphertext. In this case, you XOR them with the ciphertext. If your cribs
are good, portions of plaintext will begin to emerge.

J

-- 
__________________________________________
When will Bush come to his senses?
Joe Peschel 
D.O.E. SysWorks                                 
http://members.aol.com/jpeschel/index.htm
__________________________________________


Relevant Pages

  • Vigenere++ Proposal of a (new?) cipher
    ... additional ciphertext shuffling phase. ... which is a fast hash function with a low collision rate and the Mersenne ... plaintext, "C" to indicate the i-th letter of the ciphertext and ... For each character of index "i" of the plaintext: ...
    (sci.crypt)
  • Re: How to cryptanalysis of Japanese PURPLE cipher machine.
    ... I have a question about PURPLE. ... > PURPLE ciphertext in September 1940 and intervals revealed the ... already completely broken the "sixes" -- early-on frequency counts ... great deal of matched plaintext and ciphertext. ...
    (sci.crypt)
  • RE: WEP attacks based on IV Collisions
    ... > figure out what you need to XOR the plaintext with to get the ... > ciphertext, one bit at a time to recover the key sequence of n ... you'd XOR the plaintext and ciphertext. ... XOR 10111011 = Secret Key ...
    (Pen-Test)
  • Re: How good an encryption algorithm is this?
    ... >> know both a plaintext and a ciphertext for some message ... This is pretty much what happens with any encryption algorithm that uses ... XOR alone. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How good an encryption algorithm is this?
    ... >> know both a plaintext and a ciphertext for some message ... This is pretty much what happens with any encryption algorithm that uses ... XOR alone. ...
    (microsoft.public.vc.language)

Quantcast