> 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/encrypt-message.md).

# Encrypt Message

When encrypting a message, the result will be divided in 3 states, see them bellow. You will need all of them to decrypt the message, so, make sure to save them somewhere, for example, in the Bubble user's database.

## States

### Encrypted Message

*State type - text*

This state is the result of the encrypted message, it is a list of numbers but in text format to simplify using/saving it in Bubble.

### Encrypted Secret

*State type - text*

This state is the result of the encrypted message, it will be needed for the Decrypt action, so, save it as well.

### Encrypted Nonce

*State type - text*

This state is the result of the encrypted message, it will be needed for the Decrypt action, so, save it as well.

## 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 and [Decrypt](/element-polkadot-utils/actions/decrypt-encrypted.md), it was made to easily test both of them on one page as they depend on each other.
