ENCRYPT: Encrypting a Password

How to:

The ENCRYPT function encrypts an alphanumeric input value using the encryption algorithm configured in FOCUS. The result is returned as variable length alphanumeric.

Syntax: How to Encrypt a Password

ENCRYPT(password)

where:

password

Fixed length alphanumeric

Is the value to be encrypted.

Example: Encrypting a Password

The following request encrypts the value guestpassword using the encryption algorithm configured in FOCUS.

-SET &P1 = ENCRYPT('guestpassword');
-TYPE &P1

The returned encrypted value is {AES}963AFA754E1763ABE697E8C5E764115E.