# Encryptor

This package handles the connection with [Encryptor Extension](https://chrome.google.com/webstore/detail/encryptor/feolajpinjjfikmmeknkdjbllbppojij).

`EncryptorExtensionConnector` is an integral part of this package, which serves as the primary interface between your application and the Encryptor Extension, facilitating operations such as public key retrieval, computation of shared secret key, and checking the state of the extension.

### Installation

```bash
npm install @4thtech-sdk/encryptor
```

### EncryptorExtensionConnector

#### Description

The `EncryptorExtensionConnector` provides methods to interact seamlessly with the Encryptor Extension. It acts as a bridge, ensuring smooth communication, and providing higher-level functions that abstract away the complexity of dealing directly with the extension's APIs.

#### Usage

To use the `EncryptorExtensionConnector`, first import it and create an instance.

```ts
import { EncryptorExtensionConnector } from '@4thtech-sdk/encryptor';

const encryptorExtension = new EncryptorExtensionConnector();
```

Once instantiated, you can use various methods like `isInstalled()`, `getPublicKey()`, and others to interact with the Encryptor Extension.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.4thtech.io/sdk/encryptor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
