# "CryptoJS is not defined" error

**URL:** <https://forum.bubble.io/t/cryptojs-is-not-defined-error/312159>\
**Category:** Need help\
**Created:** [March 13, 2024, 11:39am UTC](https://forum.bubble.io/t/cryptojs-is-not-defined-error/312159 "2024-03-13T11:39:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeirodabogado](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jeirodabogado/32/208476_2.png) [@jeirodabogado](https://forum.bubble.io/u/jeirodabogado)\
**Post date:** [March 13, 2024, 11:39am UTC](https://forum.bubble.io/t/cryptojs-is-not-defined-error/312159/1 "2024-03-13T11:39:09Z")

</div>

Hello, I’m new to Bubble. I am creating a simple code that includes a piece of JavaScript code. The code is embedded in HTML element and performs a simple MD5 conversion based on the variable that I declared. I have imported the library of CryptoJS which should help me on this. Example:

So far, I’m encountering the error of “CryptoJS is not defined”. Can you give me a possible reason why is this happening? or any alternative library?

Thank you in advance and hope to find some answers 🙂

---

<div class="post-metadata">

**Author:** ![jeirodabogado](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jeirodabogado/32/208476_2.png) [@jeirodabogado](https://forum.bubble.io/u/jeirodabogado)\
**Post date:** [March 14, 2024, 3:30am UTC](https://forum.bubble.io/t/cryptojs-is-not-defined-error/312159/2 "2024-03-14T03:30:21Z")

</div>

As for my research, the CryptoJS is used on the server side and not possible on the client side.  
Here is the result of my research:  
_“Performing MD5 encryption directly on an HTML element within the Bubble Editor isn’t possible because HTML elements are used for rendering content and structure within a webpage, not for executing code or performing computations like encryption.”_

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [May 22, 2024, 11:39am UTC](https://forum.bubble.io/t/cryptojs-is-not-defined-error/312159/3 "2024-05-22T11:39:28Z")

</div>

Closed on May 22, 2024, 11:39am UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
