DECRYPT


The DECRYPT function decodes a string encrypted by the ENCRYPT function.

 

COMMAND SYNTAX

DECRYPT(string, key, method)

 

SYNTAX ELEMENTS

string specifies the string to be decrypted.
key is the value used to decrypt the string. It's use depends on method.
method is a number which indicates the decryption mechanism to use:

0

General purpose encryption scheme.
This method will decrypt 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 ENCRYPT.

 

EXAMPLES

X = DECRYPT(X, Ekey, 0)

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

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


jBC