ENCRYPT


The ENCRYPT function encrypts strings.

 

COMMAND SYNTAX

ENCRYPT(string, key, method)

 

SYNTAX ELEMENTS

string specifies the string to be encrypted.
key is the value used to encrypt the string. It's use depends on method.
method is a number which indicates the encryption mechanism to use:

0

General purpose encryption scheme.
This method will encrypt the string using the key value supplied.

1

Simple ROT13 algorithm.
key not used.

2

XOR MOD11 algorithm.
The first character of key is used as a seed value.

 

NOTES

See also DECRYPT.

 

EXAMPLES

X = ENCRYPT("What's your point Vanessa?", Ekey, 0)

IF ENCRYPT("example,"",1) = "rknzcyr" THEN CRT "ROT13 ok"

IF ENCRYPT("example,"9",2) = "g{ehvkm" THEN CRT "XOR.MOD11 ok"


jBC