Joins corresponding ASCII codes of paired strings using an exclusive OR

     CHARXOR(<cString1>,<cString2>) --> cString


     <cString1>  [@]  Designates the character string on which the
     exclusive OR (XOR) operation is performed.

     <cString2>  Designates the characters that are joined using XOR with


     The processed <cString1> is returned.


     The function performs an exclusive OR operation on each character in
     <cString1> with the corresponding characters in <cString2>.

     You can use CHARXOR() to code passwords and text.  The advantage of this
     function is that it can be used for both encryption and decryption.


     .  If both character strings are the same length, then the first
        byte of <cString1> is linked with the first byte of <cString2>, and
        the second byte of <cString1> is linked with the second byte of
        <cString2>, etc..  If <cString2> is shorter than <cString1>, then
        when the last byte of <cString2> is reached, it continues with the
        first byte of <cString2>.  However, if <cString1> is shorter than
        <cString2>, the process terminates at the end of <cString1>.

     .  The return value of this function can be suppressed by
        implementing CSETREF() to save room in working memory.


     .  CHARXOR() returns the coded value once.  The password should
        be as long as possible:

        ? CHARXOR("Secret", "Password")

     .  Call CHARXOR() twice to return the initial value:

        ? CHARXOR(CHARXOR("Secret", "Password"), "Password")

     .  A double encryption is also possible:

        ? CHARXOR(CHARXOR("Secret", "Password"), "A12B44")



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.