> For the complete documentation index, see [llms.txt](https://wiki.4thtech.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.4thtech.io/sdk-and-white-label/encryption-1/encryption-handler/addencryptioninstance.md).

# addEncryptionInstance

{% hint style="info" %}
Reference for SDK 0.5.x (maintenance mode). See [Status](/sdk-and-white-label/status.md).
{% endhint %}

Adds an encryption implementation to the EncryptionHandler.

### Usage

```ts
encryptionHandler.addEncryptionInstance(encryptionImpl);
```

### Returns

`void`

This method does not return a value. Instead, it updates the internal state of the EncryptionHandler by adding the provided encryption instance.

### Parameters

#### encryptionInstance

* **Type** `Encryption`

The encryption implementation that provides the necessary methods to encrypt and decrypt data.
