iCrypto_ByteXor

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > Crypto >

iCrypto_ByteXor

 

Description

 

Performs a byte XOR on a specified string.

 

Syntax

 

modifiedText = iCrypto_ByteXor(inputText, nValue, nMode)

 

Returns

 

String, modified input according to parameters.

 

Parameters

 

Name

Type

Optional

Meaning

sText

String

No

Input text to be XORed

nValue

Number

No

XOR value to be used, in range 0 - 255

nMode

Equate

No

One of the following equates

%iCrypto_XOR_NORMAL

%iCrypto_XOR_INCREASE

%iCrypto_XOR_DECREASE

 

Remarks

 

Restrictions

 

Currently broken, do not use

 

See also

 

Examples

 

Uses "Crypto"

 

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