> For the complete documentation index, see [llms.txt](https://docs.enginsight.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enginsight.com/docs/knowledge-base/english/configuration/how-do-i-set-up-field-level-encryption-in-enginsight.md).

# How do I set up Field Level Encryption in Enginsight?

Field Level Encryption (FLE) is a security method in which specific fields within a data record are encrypted instead of encrypting the entire database.

Follow these steps to set up Field Level Encryption in Enginsight:

{% stepper %}
{% step %}
Log in to the **Enginsight Application Server**.
{% endstep %}

{% step %}
Open the Enginsight configuration file using the following command:

```
sudo nano /opt/enginsight/enterprise/conf/services/config.json
```

{% endstep %}

{% step %}
Navigate to the `database` section and extend it as follows:

<pre><code>"database": {
    "uriConnectionString": "...",
<strong>    "fieldLevelEncryption": {
</strong><strong>        "enabled": true,
</strong><strong>        "key": "&#x3C;Password>"
</strong>    }
},
</code></pre>

{% hint style="info" %}
Remember to replace `<Password>` with a strong password. It should be at least 16 to 32 characters long and ideally consist of letters, numbers, and special characters.
{% endhint %}
{% endstep %}

{% step %}
Save the configuration file (**Ctrl** + **o**) and confirm the save process. Close the configuration file (**Ctrl** + **x**).
{% endstep %}

{% step %}
You now need to run the setup script for the Application Server again to apply your configuration changes.

To do this, navigate to the directory where the Enginsight configuration files are located using the following command:

```
cd /opt/enginsight/enterprise
```

{% endstep %}

{% step %}
Run the setup script anew using the following command to apply your changes, and confirm all prompts with the **Enter** key:

```
sudo ./setup.sh
```

{% endstep %}
{% endstepper %}

***
