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

# Encryption

Documentation for the @4thtech-sdk/encryption package

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

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](/sdk-and-white-label/encryption-1/encryption-handler.md)

#### Encryption Implementations

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

* [AES Encryption](/sdk-and-white-label/encryption-1/aes-encryption.md) A symmetric encryption algorithm that offers data encryption and decryption using the Advanced Encryption Standard.
* [Encryptor AES Encryption](/sdk-and-white-label/encryption-1/encryptor-aes-encryption.md) An extended encryption mechanism that combines AES with the Encryptor extension, enabling shared secret-based encryption between two parties.
