> 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/getencryption.md).

# getEncryption

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

Retrieves a specific encryption implementation from the handler based on the encryption type provided.

### Usage

```ts
import { EncryptionType } from '@4thtech-sdk/types';

const encryptionInstance = encryptionHandler.getEncryption(EncryptionType.AES);
```

### Returns

`Encryption`

The corresponding encryption implementation for the specified type. If the type is found within the handler's internal map, the related encryption instance will be returned.

### Parameters

#### encryptionType

* **Type** `EncryptionType`

The specific type of encryption you want to retrieve. This should correspond to one of the encryption types managed by the EncryptionHandler.
