|
Crypt |
Top Previous Next |
|
Crypt>key,source,target
Encrypts or decrypts source to target using specified key. Encrypts a plain ANSI string, decrypts an encrypted string if the same key as used for the encryption is specified.
By default the encryption strength is set to 32 bit. This can be changed to medium level 64 bit or high level 96 bit using the CRYPT_LEVEL variable:
1 = Default 32 bit 2 = Medium 64 bit 3 = High 96 bit
Abbreviation: Cry See also: Base64
Example
Crypt>abc,hello,cryptval
..
Crypt>abc,cryptval,clean
Crypt often produces binary output. Therefore, if writing encrypted strings to text files first encode the string with Base64. Decode the string when reading from the file before decrypting. E.g.:
//Encrypt the text
//Encode with Base64 Base64>encdata,ENCODE,encdata
//Write to the file WriteLn>file,r,encdata Base64>encdata,DECODE,encdata //Decrypt |