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

# Encryptor

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

Class that provides functionality for public key retrieval and storage, as well as shared secret key computation using the Encryptor extension.

### Usage

Below is a minimal example of how to initialize \`Encryptor:

```ts
import { Encryptor } from '@4thtech-sdk/ethereum';

const encryptor = new Encryptor({
  encryptorExtension,
  walletClient,
});
```

### Parameters

#### config

* **Type** `EncryptorConfig`

The configuration object required to initialize the encryptor service.

#### config.encryptorExtension

* **Type** `EncryptorExtension`

An instance of the Encryptor Extension to be used by the Encryptor.

You can use:

* [EncryptorExtensionConnector](/sdk-and-white-label/encryptor.md)

#### config.walletClient

* **Type** `WalletClient`

An instance of the wallet client that takes care of sending Ethereum transactions.
