# Crypto: Encrypt and decrypt

**Cognigy Support**  
October 24, 2022

Crypto in cooperation with the Cognigy Extension provides the functionality of **crypto algorithms**. **This tutorial** will explain **how to integrate** **encryption** and **decryption** to a **Cognigy.AI virtual agent**.

## Table of Contents

1. [Install the Crypto Extension](https://support.cognigy.com/hc/en-us/articles/4402358341266-Crypto-Encrypt-and-decrypt#h_01F35G1EZ8B9T7DGEDJSE9T1M3)
2. [Create a Hash Key](https://support.cognigy.com/hc/en-us/articles/4402358341266-Crypto-Encrypt-and-decrypt#h_01F67XCH5TJA82C0XA3WWDS7KK)
3. [Encrypt](https://support.cognigy.com/hc/en-us/articles/4402358341266-Crypto-Encrypt-and-decrypt#h_01F67XCH5TJA82C0XA3WWDS7KK)
4. [Decrypt](https://support.cognigy.com/hc/en-us/articles/4402358341266-Crypto-Encrypt-and-decrypt#h_01F67XCH5TJA82C0XA3WWDS7KK)

## Install the Crypto Extension

The first step is to install the required integration. In this case, a so-called [Extension](https://docs.cognigy.com/docs/extensions) is uploaded to Cognigy.AI. Thus, open the [Extensions Library](https://support.cognigy.com/hc/en-us/articles/360016409380-Extensions-Overview) in another tab and download the **Crypto** Extension by clicking on the **Download** button. Now follow [this installation guide and upload the Extension to Cognigy](https://support.cognigy.com/hc/en-us/articles/360016505680-Extensions-Installation#upload-an-extension-0-2), where it will be displayed as the following:

**Congrats! The installation of the Extension is finished!**

## Create a Hash Key

A hash key is needed for the encryption and decryption algorithms.

The **Create Hash** node allows you to calculate a hash key:

Select a hashing algorithm, a text to hash and a storage option:

## Encrypt

Creates and returns an encrypted object, with the selected algorithm and hash key.

Select an encryption algorithm, a text to encrypt and use an existing hash key:

## Decrypt

Creates and returns a decrypted object, with the selected algorithm and hash key.

To decrypt an encrypted object, select the same algorithm and hash key:
