$cipher.encrypt

Encrypts data.
Syntax
    $cipher{encrypt}{data}
    $cipher.encrypt{data}
DocumentationEncrypts data.

    Parameters:
      encrypt, a flag to indicate that the given data are to be encrypted.
      data, the data to be encrypted.
    Returns:
      the encrypted data.
Examples
    $set{data}{Hello world!}
    $cipher{setKey}{myKey}
    $set{encryptedData}{$cipher{encrypt}{$get{data}}}

    Note: The string 'Hello world!' has been encoded by using the key named 'myKey'.
    The same key must be used to decode the string; otherwise the string can't
    be decoded.
GroupSpecial
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters 1