Developer Documentation Library > Scripting > UNICOM Intelligence Function Library > Miscellaneous functions > Decrypt
 
Decrypt
Decrypt a string. See also Encrypt.
Syntax
Decrypt(Value, Key) As String
Parameters
Value
Type: String
The encrypted string that needs to be decrypted.
Key
Type: String
The original Base64‑encoded key that was used to encrypt the value. If the key is binary data that cannot be represented by an ASCII string, the Base64‑encoded string must be created by using an external converter, for example, a hex to Base64 encoder.
(return)
Type: String
Returns the string value after it has been decrypted by using the specified key.
If an authentication tag was requested when the value was encrypted, the Value is validated before decryption.
See also
Encrypt
Miscellaneous functions