Encrypt Message

Encrypt and Decrypt a message with NaCl (pronouced "salt"), which is a Networking and Cryptography library used in util-crypto.

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

Demo page app editor

The demo page includes both actions, Encrypt and Decrypt, it was made to easily test both of them on one page as they depend on each other.

Last updated

Was this helpful?