Crypto: Encrypt and decrypt – Cognigy.AI Help Center

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
  2. Create a Hash Key
  3. Encrypt
  4. Decrypt

Install the Crypto Extension

The first step is to install the required integration. In this case, a so-called Extension is uploaded to Cognigy.AI. Thus, open the Extensions Library 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, 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: