Encrypting and decrypting strings

The policy language provides a feature that you can use to encrypt and decrypt strings.

About this task

This feature is useful if you want to handle password data within a Netcool®/Impact policy.

You can use the Encrypt function to encrypt a string. This function takes the string as an input parameter and returns an encrypted version.

The following example shows how to encrypt a string:

MyString = Encrypt("password");

You can decrypt a string that you have previously encrypted using the Decrypt function. This function takes an encrypted string as an input parameter and returns the plaintext version.

The following example shows how to decrypt a string. In this example, the parameter to Decrypt the function is the return value of the Encrypt("password") call.

MyString = Decrypt("AB953E4925B39218F390AD2E9242E81A");