> For the complete documentation index, see [llms.txt](https://polkadot.novabloq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://polkadot.novabloq.com/element-polkadot-utils/actions/decrypt-encrypted.md).

# Decrypt Encrypted

This action will decrypt the encrypted message with [Encrypt Message](/element-polkadot-utils/actions/encrypt-message.md) action.

Note that to decrypt the message you will need the Encrypted message, Nonce and Secret, you will get all of them when encrypting a message, so, make sure to save them.&#x20;

![](/files/nwm6Ap7aQcJgqf6LqoVb)

## States

### Decrypted Message

*State type - text*

This state includes the result of the decrypted message. If the given data(nonce, secret and encrypted message) was right, you will see the decrypted message that will be the exact same as the original encrypted message. \
If some of the given data is wrong, this state will be empty.

## Demo

Demo page [here](https://polkadotjs.bubbleapps.io/version-test/encrypt_decrypt_message)

Demo page [app editor](https://bubble.io/page?type=page\&name=encrypt_decrypt_message\&version=test\&id=polkadotjs\&tab=tabs-1)

The demo page includes both actions, [Encrypt](/element-polkadot-utils/actions/encrypt-message.md) and Decrypt, it was made to easily test both of them on one page as they depend on each other.

{% hint style="info" %}
Note! The data to decrypt the message is taken from the inputs on the page, this was done for demo purpose only, you can save that data in the database and get it from there.
{% endhint %}
