DecryptStr function

Syntax

DecryptStr(EncryptedString, KeyString)

Description

Use the DecryptStr function to decrypt a string previously encrypted with the EncryptStr function. For this function to decrypt a string successfully, you must use the same KeyString value used to encrypt the string.

Note:

The default cipher algorithm is AES128 (Advanced Encryption Standard).

Parameters

Parameter Description

EncryptedString

Specify the string you want decrypted.

This parameter is required.

KeyString

Specify the key used for encrypting the string.

This parameter is optional. However, as a safe security practice, Oracle recommends that you generate an AES128 key. You may use the GenSecureKey function to generate a key. If you plan to generate a key on your own, you must have a thorough knowledge of the AES128 key size because Oracle does not provide guidelines on generating or managing keys.

Refer to the PeopleSoft Security Practices Technical Brief.

Returns

A clear text string.

Example

EncryptStr and DecryptStr support only strings.

Cleartext-String = DecryptStr("Encrypted-Based64-String as required field", "Cleartext-KeyString as optional field");