Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Short & Sweet Encryption?

by thor (Priest)
on Jul 30, 2006 at 15:21 UTC ( [id://564626]=note: print w/replies, xml ) Need Help??


in reply to Re: Short & Sweet Encryption?
in thread Short & Sweet Encryption?

xor-ing is the method used by the One-Time pad, so to say that it's inherintly insecure is somewhat unfair. Also, you'd probably want to do something to bring the characters back into printable range, which you don't do above.

thor

The only easy day was yesterday

Replies are listed 'Best First'.
Re^3: Short & Sweet Encryption?
by Anonymous Monk on Jul 30, 2006 at 15:55 UTC

    To encode a high quality 4MP image, XOR requires a 17,000,000 bit (non-reusable) key. Other top ciphers require a 64 or 128 bit (reusable) key. XOR requires extra bits to compensate for its inherent insecurity.

    If your key management system is secure enough to exchange and store a key as big as the data to encrypt, why don't you the system to protect the plaintext instead of the key?

      One Time Pads do have their application. For instance, the Russians used them to great effect for a while during the Cold War. Where they tripped up was they started to reuse keys. The One Time Pad assumes a random key. Once it starts repeating, it becomes a Vigenère Cipher, which has trivial to implement attacks against it.

      As far as why you would implement such a thing, I leave that to your imagination. I wasn't even saying that it was a particularly good choice for this application. I was just defending xor-based ciphers in general.

      thor

      The only easy day was yesterday

Re^3: Short & Sweet Encryption?
by syphilis (Archbishop) on Jul 30, 2006 at 23:12 UTC
    xor-ing is the method used by the One-Time pad, so to say that it's inherintly insecure is somewhat unfair

    I would never say that. The only shortcoming of a properly constructed one-time pad is that it (or a copy of it) may fall into the wrong hands.

    Also, you'd probably want to do something to bring the characters back into printable range, which you don't do above

    I don't see any need to do that. (Apologies if I'm being dumb :-)

    Cheers,
    Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://564626]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-24 19:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found