xml.Encryption.DecryptString
Decrypts an encrypted string encoded in BASE64, using the specified symmetric key, and returns the string in clear text.
Syntax
xml.Encryption.DecryptString(
key xml.CryptoKey ,
str STRING )
RETURNS STRING
- key defines the symmetric key to use for decryption.
- str defines the encrypted string for decryption.
Usage
This method decrypts the encrypted string str encoded in BASE64, using the symmetric key specified in key, and returns the string in clear text.
The key's usage must be for encryption
, see Supported kind of keys.
In case of error, the method throws an exception and sets the
STATUS
variable. Depending on the error, a human-readable description of the
problem is available in the SQLCA.SQLERRM
register. See Error handling in GWS calls (STATUS).