Search Our Site:
  • Apple
  • Freeware
  • Tips & Tricks
  • Google
    • Gmail
    • Orkut
  • News
  • Facebook
  • Useful Sites
  • Contact-Us
Home   »   Archives for May 2010

Easy encryption using bitwise “exclusive-OR” (XOR)

  • Posted on:May 16, 2010
  • Posted in:Tips & Tricks
  • Posted by:admin
1

Bitwise exclusive-OR aka XOR:
XOR is a bit like normal OR. OR compares 2 or more values and evaluates to true if one or more of those values evaluate to true. XOR on the other hand only evaluates to true if only one of those values evaluate to true.

Example:
Code:
if (0 OR 0) // false
if (0 OR 1) // true
if (1 OR 1) // true

if (0 XOR 0) // false
if (0 XOR 1) // true
if (1 XOR 1) // false

Read More
advertisment

Recent Comments

yepi250 on
GoDaddy Promotion-1.49$ TLD(+0.18 ICANN Fees)
2 weeks ago

Domain Registration India on
GoDaddy Promotion-1.49$ TLD(+0.18 ICANN Fees)
10 weeks ago

Tweets

Sponsored By:

Visit Our Friends!

  • SavingMore.in

Tags

Android antivirus apple download facebook google ipad iphone paypal phone Product rapidshare rockmelt search engine optimisation seo startup tips tutorial twitter update windows

Copyright © 2009-2013 Freedom2Blog.com. All Rights Reserved.