Decrypt function
Syntax
Decrypt(KeyString, EncryptedString)
Description
Use the Decrypt function to decrypt a string previously encrypted with the Encrypt function. This function is generally used with merchant passwords. For this function to decrypt a string successfully, you must use the same KeyString value used to encrypt the string.
Parameters
| Parameter | Description |
|---|---|
|
KeyString |
Specify the key used for encrypting the string. You can specify a NULL value for this parameter, that is, two quotation marks with no blank space between them (""). |
|
EncryptedString |
Specify the string you want decrypted. |
Returns
A clear text string.
Example
Encrypt and Decrypt support only strings.
&AUTHPARMS.WRKTOKEN.Value = Decrypt("", RTrim(LTrim(&MERCHANTID_⇒
REC.CMPAUTHNTCTNTOKEN.Value)));