[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   nXOr( nMask1, ... nMaskn ) -> <nResult> 
------------------------------------------------------------------------------


 PARAMETER:

  <nMask1 .. n>    one to many Bitmasks that will be XORed together


 DESCRIPTION:

  This function lets you perform a logical XOR with an integer bitmask and
  one ore more integer value. The purpose is to set one or more bits in 
  <nResult> in response to nMask1 - nMaskn :

                        1 XOR 1 = 0
                        0 XOR 0 = 0
                        1 XOR 0 = 1
                        0 XOR 1 = 1
  

  This is used for instance to encrypt a string: just XOR every char of
  the string with an Integer value to hide it, and XOR it again with the
  same value decrypt the string again. This technique is often used in
  C/ASM code to hide an ASCII string for prying eyes.
  

 SOURCE:

  SOURCE\FUNCTION\OR.C



See Also: nOr lAnd nAnd
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson