http://www.perlmonks.org?node_id=218405


in reply to Re: Re: What A Wonderful World: Bitmasks!
in thread What A Wonderful World: Bitmasks!

Excellent node. I completely forgot to cover the operators.

One thing id like to add however is that your comment about XOR being the basis of simple encryption, while being true, should not be emulated. XOR based cyphers are particularly vulnerable to being cracked. Also, the most common use of XOR is right in front of everybodys eyes: graphics.

--- demerphq
my friends call me, usually because I'm late....

  • Comment on Re: Re: Re: What A Wonderful World: Bitmasks!

Replies are listed 'Best First'.
Re: Re: Re: Re: What A Wonderful World: Bitmasks!
by tachyon (Chancellor) on Dec 09, 2002 at 00:34 UTC

    I suppose you don't like rot13 either ;-)

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Re^4: What A Wonderful World: Bitmasks!
by ikegami (Patriarch) on Jun 22, 2005 at 05:12 UTC

    I think XOR is still at the base of modern symetric (i.e. private key) encryption algorithms. They create a stream which is XORed with the plaintext. The difference between the simple XOR encryption of which you are surely thinking and these better algorithm is that the stream these new algorithms create is not periodic.

    If I remember correctly, one end of an HTTPS connection uses public key encryption to distribute a private key to its peer, and then they switch to symetric (private key) encryption. It does this because symetric is faster, and XOR surely plays a part in that.

    Feel free to correct me. This subject is far from fresh in my mind.