Decrypt

The Decrypt function decrypts a string that has been previously encrypted by using Encrypt or the nci_crypt tool.

Syntax

The Decrypt function has the following syntax:

String = Decrypt(Expression)

Parameters

The Decrypt function has the following parameter.

Table 1. Decrypt function parameters

Parameter

Format

Description

Expression

String

String to decrypt.

Return value

Decrypted string.

Example

This example shows how to decrypt a string for example a server name. The encrypt value uses the servers private key for encryption. The output is server specific.

MyString = Encrypt("Password");
Log("Encrypted Value " + MyString);

MyDecrypt = Decrypt(MyString);
Log("Decrypted Value " + MyDecrypt);

Output

Parser log: Encrypted Value {aes}52A2390EA2D80E0191E735915CCAC5FE
Parser log: Decrypted Value Password