# Encrypt

Encrypt a string or file based on a specified key.

Action available for the following operating systems:

![](/files/-MAlQBZuuTnc6hyzKSVQ)

### Parameters

* **Source Type** - The type of the source that the user wants to encrypt. It can be one of:
  * 1\. File
  * 2\. Text
* **Password** <*string*> - The password that the user wants to use to encrypt the data.

{% hint style="info" %}
The maximum Password size is 32 bytes of UTF-8 chars.
{% endhint %}

* **Unicode** - Defines if the files or text that the user wants to encrypt is in Unicode or not. It can be one of:
  * 1\. Yes
  * 2\. No
* **Source File** <*string*> - The full path and file name of the source file or text.
* **Target File** <*string*> - The full path and file name of the destination file or text (encrypted file or encrypted text).

{% hint style="info" %}
If the Target File is a Control (example: an Input Box), the user may loose information, because the encrypted string can contain non printable chars.
{% endhint %}

* **Printable Chars** - Defines if the chars are printable or not. If this option is 'YES' the string size is triple (3x). It can be one of:
  * 1\. Yes
  * 2\. No

{% hint style="info" %}
Encryption is done using the Advanced Encryption Standard 256 (AES).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sysdevmobile.com/kalipso5/developing/form/actions/actions-description/group-code-flow/encrypt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
