Syntax
CharXOR( cString1, cString2 ) --> cResultArguments
cString1
cString2
Example
PROCEDURE Main()
LOCAL cKey := "xDev"
LOCAL cSecret := CharXOR( "Meet at noon", cKey )
Check( 'CharXOR( cSecret, cKey ) ', CharXOR( cSecret, cKey ), "Meet at noon" )
Check( 'cSecret == "Meet at noon" ', cSecret == "Meet at noon", .F. )
RETURN
STATIC PROCEDURE Check( cTitle, xResult, xExpected )
QOut( cTitle + IIF( xResult == xExpected, "OK", "ERROR" ) )
RETURNOutput
CharXOR( cSecret, cKey ) OK
cSecret == "Meet at noon" OK