DECRYPT() - Decrypt Specified String
Syntax in BBj 9.00 and Higher
DECRYPT(string{,password}{,MODE=string}{,ERR=lineref})
Syntax in Prior to BBj 9.00
DECRYPT(string,MODE=string{,ERR=lineref})
Description
In PRO/5 5.00 and BBj 4.00 and higher, DECRYPT() decrypts the specified string that was encrypted with ENCRYPT(). Attempting to decrypt with the wrong key or algorithm will usually cause meaningless data to be returned.
Mode |
Value |
Description |
---|---|---|
CRYPTPASS= |
String |
The decryption key. |
CRYPTALG= |
AES-128 AES-256 |
Uses AES-128 bit encryption, which is also the default. In BBj 6.0 and higher, and PRO/5 6.0 and higher, uses AES-256 bit encryption. |
CHARSET= |
String |
In BBj 16.0 and higher, specifies the character set encoding of the password string. |
Parameters
Parameter |
Description |
---|---|
string |
The encrypted string to be decrypted. |
password |
The decryption key. |
If both the password parameter and the CRYPTPASS= mode are specified, the password value takes precedence.
BBj 16.00 and Higher
Example 1
|
BBj 9.00 and Higher
Example 2
|
Prior to BBj 9.00
Example 3
|
Example 4
|
Example 5
|