encrypt

encrypt

Syntax

encrypt(textToEncrypt, cipherKey)

Package

Alias

Pkg Usage

Description

Encrypts text with AES encryption using a 16, 32, 64, or 128 bit cipher. This is useful when using Persistent variables to store passwords. Returns the encrypted input text.

Parameters

Parameter name

Type

Required

Description

textToEncrypt

String

Yes

Text to encrypt

cipherKey

String

Yes

Secret cipher key text used for encryption and decryption. Must be 16, 32, 64, or 128 characters in length.

Return Type

String

Returns the encrypted input text

Example

return encrypt("adminPassword", "secretKeyPhrase7");

See also

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.