# Encryption

This package allows for easy data encryption and decryption using various encryption methods, ensuring secure data handling within the 4thTech protocol.

### Installation

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

### Core Functionality

#### Encryption Handler

It manages different encryption methods and allows data to be encrypted and decrypted using the specified encryption type. All encryption implementations are managed through this handler.

* Documentation: [Encryption Handler Details](https://github.com/4thtech/wiki.4thtech.io/blob/main/docs/sdk/encryption/encryption-handler/README.md)

#### Encryption Implementations

Different encryption algorithms can be integrated into the 4thTech protocol system by providing custom implementations of the `Encryption` interface.

* [AES Encryption](https://github.com/4thtech/wiki.4thtech.io/blob/main/docs/sdk/encryption/encryption-implementations/aes-encryption/README.md) A symmetric encryption algorithm that offers data encryption and decryption using the Advanced Encryption Standard.
* [Encryptor AES Encryption](https://github.com/4thtech/wiki.4thtech.io/blob/main/docs/sdk/encryption/encryption-implementations/encryptor-aes-encryption/README.md) An extended encryption mechanism that combines AES with the Encryptor extension, enabling shared secret-based encryption between two parties.


---

# 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/encryption.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.
