Navigation:  thinBasic Modules > Crypto >

iCrypto_ByteXor

Previous pageReturn to chapter overviewNext page

 

Description

 

The iCrypto_ByteXor() function makes a byte XOR on a specified string.

 

Syntax

 

iCrypto_ByteXor(sText AS STRING,

                 nValue AS NUMBER,

                 nMode AS NUMBER) AS STRING

 

Returns

 

Returns AS STRING

The XORed string.

 

Parameters

 

Name

Type

Optional

Meaning









sText AS STRING

The string to encrypt

  nValue AS NUMBER

The XOR value to use, it must be in range of 0 to 256 (byte)

  nMode AS NUMBER

The mode with doing the xor operation, it can be one of the following:

   %iCrypto_XOR_NORMAL

   %iCrypto_XOR_INCREASE

   %iCrypto_XOR_DECREASE

 

Remarks

 

 

Restrictions

 

 

See also

 

 

Examples

 

iCrypto_ByteXor("This is a Test", 90, %iCrypto_XOR_NORMAL)

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com