# Encrypt data with AES

**URL:** <https://forum.bubble.io/t/encrypt-data-with-aes/294446>\
**Category:** Need help\
**Created:** [November 22, 2023, 9:55pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446 "2023-11-22T21:55:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![quidsicurezza](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/quidsicurezza/32/67196_2.png) [@quidsicurezza](https://forum.bubble.io/u/quidsicurezza)\
**Post date:** [November 22, 2023, 9:55pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/1 "2023-11-22T21:55:25Z")

</div>

I’ve Installed the plugin “AES256” to encrypt data, for a few days it works perfectly works, but now it doesn’t works anymore, the data doesn’t encrypt. Could someone help me to make it works this plugin?

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 22, 2023, 10:10pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/2 "2023-11-22T22:10:44Z")

</div>

Hey @quidsicurezza That’s odd. 🤔

Which plugin are you using?

---

<div class="post-metadata">

**Author:** ![quidsicurezza](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/quidsicurezza/32/67196_2.png) [@quidsicurezza](https://forum.bubble.io/u/quidsicurezza)\
**Post date:** [November 23, 2023, 6:50am UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/3 "2023-11-23T06:50:01Z")

</div>

The Plugin is AES256

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 23, 2023, 1:59pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/4 "2023-11-23T13:59:03Z")

</div>

Have you checked the logs to see if there are any errors? Hmm 🤔

---

<div class="post-metadata">

**Author:** ![quidsicurezza](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/quidsicurezza/32/67196_2.png) [@quidsicurezza](https://forum.bubble.io/u/quidsicurezza)\
**Post date:** [November 24, 2023, 11:15am UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/5 "2023-11-24T11:15:24Z")

</div>

![image](https://us1.discourse-cdn.com/bubble/original/3X/c/9/c9cd346fde3c81f6c7d829f1dd87414232f903c6.png)  
This is the log, IDK if it is a problem

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 24, 2023, 2:14pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/6 "2023-11-24T14:14:51Z")

</div>

Does button A have a workflow? 🤔

---

<div class="post-metadata">

**Author:** ![quidsicurezza](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/quidsicurezza/32/67196_2.png) [@quidsicurezza](https://forum.bubble.io/u/quidsicurezza)\
**Post date:** [November 24, 2023, 2:20pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/7 "2023-11-24T14:20:33Z")

</div>

![image](https://us1.discourse-cdn.com/bubble/original/3X/1/9/199843041ecac86539d7931c7900c4752f82a883.png)  
Yes!

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 24, 2023, 2:32pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/8 "2023-11-24T14:32:04Z")

</div>

Hmm 🤔

Have you tried running the debugger and step-by-step to see if there are errors on the page?

---

<div class="post-metadata">

**Author:** ![quidsicurezza](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/quidsicurezza/32/67196_2.png) [@quidsicurezza](https://forum.bubble.io/u/quidsicurezza)\
**Post date:** [November 24, 2023, 2:43pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/9 "2023-11-24T14:43:18Z")

</div>

![Immagine](https://us1.discourse-cdn.com/bubble/original/3X/c/1/c106931d20a79baf09f27dbbf0b9fe7766b5f73c.png)  
 ![Immagine2](https://us1.discourse-cdn.com/bubble/original/3X/2/7/272203506d89b3f4a782b94fbaa7b301dff3add1.png)  
As you could see, the text that should be encrypted remain the same

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 24, 2023, 2:45pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/10 "2023-11-24T14:45:51Z")

</div>

Oh. I get it now. You actually need a step after that one to save the value. Or just switch the order of the steps. Does that make sense? Sorry I didn’t catch this sooner. 😊

---

<div class="post-metadata">

**Author:** ![quidsicurezza](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/quidsicurezza/32/67196_2.png) [@quidsicurezza](https://forum.bubble.io/u/quidsicurezza)\
**Post date:** [November 24, 2023, 3:01pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/11 "2023-11-24T15:01:06Z")

</div>

![image](https://us1.discourse-cdn.com/bubble/original/3X/8/c/8c62354f460bbcb434058848760604ecb91fbdc0.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/2/6/26fa6ecd01ef799531e913d882e8201a78356e7a.png)  
I’ve just tried, but the text doesn’t encrypt as you could see 😢

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 24, 2023, 3:12pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/12 "2023-11-24T15:12:44Z")

</div>

You need to reference result of step 1 and not the input. 😊

---

<div class="post-metadata">

**Author:** ![quidsicurezza](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/quidsicurezza/32/67196_2.png) [@quidsicurezza](https://forum.bubble.io/u/quidsicurezza)\
**Post date:** [November 24, 2023, 3:25pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/13 "2023-11-24T15:25:34Z")

</div>

But in this case the encryption step must be the second one

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 24, 2023, 3:35pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/14 "2023-11-24T15:35:24Z")

</div>

Why is that the case? 🤷‍♂️

If you reference the **input** into your step 2, you are referencing the value before it is encrypted. Does that make sense?

---

<div class="post-metadata">

**Author:** ![quidsicurezza](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/quidsicurezza/32/67196_2.png) [@quidsicurezza](https://forum.bubble.io/u/quidsicurezza)\
**Post date:** [November 24, 2023, 4:34pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/15 "2023-11-24T16:34:05Z")

</div>

> [@J805](#):
>
> Perché? 🤷‍♂️
> 
> Se si fa riferimento **all’input** nel passaggio 2, si fa riferimento al valore prima che venga crittografato. Ha senso?

So in this case, the encryption step must be the second one, if I want to reference to the step 1, and I’ve just tried this, and it doens’t works, Could you tell me step by step the WF you mean?

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 24, 2023, 5:06pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/16 "2023-11-24T17:06:40Z")

</div>

Here is how you would do it:

Editor: [testApp42wCleanDB | Bubble Editor](https://bubble.io/page?type=page&name=encryption&id=testapp42wcleandb&tab=tabs-1)

Preview: [https://testapp42wcleandb.bubbleapps.io/version-test/encryption?debug\_mode=true](https://testapp42wcleandb.bubbleapps.io/version-test/encryption?debug_mode=true)

Does that help? 😊

---

<div class="post-metadata">

**Author:** ![quidsicurezza](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/quidsicurezza/32/67196_2.png) [@quidsicurezza](https://forum.bubble.io/u/quidsicurezza)\
**Post date:** [November 25, 2023, 9:36am UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/17 "2023-11-25T09:36:02Z")

</div>

I think that the solution lies in the fact that the text that is first encrypted and then decrypted must be contained in a custom state

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 25, 2023, 1:52pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/18 "2023-11-25T13:52:14Z")

</div>

You can do it in a database thing too. I was just trying to not use a database record for the example. It works the same way as long as you have the order the same. Glad that helped. 😊

---

<div class="post-metadata">

**Author:** ![quidsicurezza](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/quidsicurezza/32/67196_2.png) [@quidsicurezza](https://forum.bubble.io/u/quidsicurezza)\
**Post date:** [November 25, 2023, 2:28pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/20 "2023-11-25T14:28:42Z")

</div>

Could you tell me how to encrypt a database entry?

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 25, 2023, 2:39pm UTC](https://forum.bubble.io/t/encrypt-data-with-aes/294446/21 "2023-11-25T14:39:49Z")

</div>

Ok. I will change the example for you. I will do that when I get back to my computer. 😊

[Next page](https://forum.bubble.io/t/encrypt-data-with-aes/294446.md?page=2)
