> 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/developers/sdk/encryption/encryption-handler/getencryption.md). Agents can also search and read this documentation through its [MCP server](https://wiki.4thtech.io/~gitbook/mcp).

# getEncryption

{% hint style="info" %}
Reference for SDK 0.5.x (production-ready, stable). See [Status](https://wiki.4thtech.io/developers/sdk/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.
