> For the complete documentation index, see [llms.txt](https://docs.efento.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.efento.io/nb-iot-loggers/configuration/device-settings/encryption.md).

# Encryption

You can protect Bluetooth communication with the logger by setting an **encryption key**. When encryption is enabled, the logger remains visible in the list of nearby devices in the Efento mobile application, but its measurement data and configuration cannot be accessed without the correct key.

This includes current measurements, data stored in the logger’s internal memory and device settings. As a result, only authorized personnel can access the logger and modify its configuration.

When connecting to an encrypted logger in the Efento mobile application for the first time, you will be prompted to enter the encryption key. After it is entered successfully, the application stores it on that device, so it does not need to be entered again for subsequent connections.

The encryption key can be up to 16 characters long. For security reasons, the key cannot be read from the logger, neither via Bluetooth nor from the server.

The encryption key can be set, changed or removed via Bluetooth (the current key is required) or remotely, in the configuration sent from the server.

The encryption key protects only the Bluetooth communication. It does not affect the data sent over the cellular network to Efento Cloud or the customer's server (see [**Security**](https://docs.efento.io/nb-iot-loggers/operation/security.md)).

<figure><img src="https://740246929-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGPFUI36OraG706yJS7dJ%2Fuploads%2FnzE1JpXEnL34bd7HMSpO%2Fencrypted_logger.png?alt=media&amp;token=ee7d6242-030e-4740-83fa-829bc1053266" alt=""><figcaption></figcaption></figure>

*If the logger communication is encrypted, only devices with a proper encryption key can read its measurements. Devices without the encryption key are not able to read the data.*

## **Configurable parameters**

| Parameter      | Descritpion                                                                                                                                                       | Range                                                                                                                          |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| **Encryption** | A security key used to protect access to the logger over Bluetooth. Without the correct key, measurement data and device settings cannot be accessed or modified. | Max 16 characters. Supported characters: `A-Z a-z 0-9 (space) ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ ] ^ _` { \| } \~\` |

## **Configuration methods**

You can configure these settings in several ways:

* **Remotely from server** – see the [**Integrations** ](https://docs.efento.io/nb-iot-loggers/integrations/direct-data-integration.md)section for information on configuring the logger from your own server.
* **From the Efento mobile application** – connect to the logger and follow the relevant configuration path in the app.
* **Factory preconfiguration** – on request, Efento can supply devices with selected settings already configured according to your requirements. See [**Factory preconfiguration**](https://docs.efento.io/nb-iot-loggers/configuration/factory-preconfiguration.md) for the list of parameters that can be configured before shipment.

## **Configuration using the Efento mobile application**

### **Setting the encryption key**

To set the encryption key in the Efento mobile app, connect to the logger and tap the gear icon. Select **Encryption status**, choose “Enabled”, enter the encryption key, and save the settings.

To disable encryption, follow the same steps and select “Disabled” in the **Encryption status** settings, then save the configuration.

### **Forgotten encryption key**

**Store the encryption key in a safe place.** If the key is lost, it cannot be recovered, neither by the user nor by Efento Support. The only way to regain access to the logger is to restore its factory settings:

{% stepper %}
{% step %}
Try to connect to the logger in the Efento mobile application. After entering a wrong key 3 times, the "Forgot your encryption key?" option appears below the key field.
{% endstep %}

{% step %}
Tap "Restore factory settings".
{% endstep %}

{% step %}
Confirm the operation.
{% endstep %}
{% endstepper %}

<figure><img src="https://740246929-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGPFUI36OraG706yJS7dJ%2Fuploads%2FyUth6P2ThnIrZTAL0a4n%2Fforgot_encryption_key.PNG?alt=media&amp;token=83967d3e-19b8-4e40-a9f1-4eec57937e30" alt="" width="375"><figcaption></figcaption></figure>

{% hint style="danger" %}
**Restoring factory settings removes the encryption key, deletes all measurements stored in the logger's internal memory and restores the default configuration. Measurements that have not been sent to the server yet will be lost. After the restore, configure the logger again.**
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.efento.io/nb-iot-loggers/configuration/device-settings/encryption.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
