# Having hard time using crypto-js module on code node

**URL:** <https://community.n8n.io/t/having-hard-time-using-crypto-js-module-on-code-node/79923>\
**Category:** Questions\
**Created:** [February 20, 2025, 10:10am UTC](https://community.n8n.io/t/having-hard-time-using-crypto-js-module-on-code-node/79923 "2025-02-20T10:10:15Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![araob](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@araob](https://community.n8n.io/u/araob)\
**Post date:** [February 24, 2025, 1:41pm UTC](https://community.n8n.io/t/having-hard-time-using-crypto-js-module-on-code-node/79923/11 "2025-02-24T13:41:10Z")

</div>

There is probably an error with the key.  
Refer to this Question:

> [@I'm having trouble signing a SHA1 string encoded in Base64](http://community.n8n.io/t/im-having-trouble-signing-a-sha1-string-encoded-in-base64/34118):
>
> Describe the problem/error/question I’m looking to interact with the [Bokun API](https://bokun.dev/booking-api-restful/vU6sCfxwYdJWd1QAcLt12i). To connect, I need to create a signature called X-Bokun-Signature [in their documentation](https://bokun.dev/booking-api-rest/vU6sCfxwYdJWd1QAcLt12i/configuring-the-platform-for-api-usage-and-authentication/sFiGRpo4detkmrZPcWtQPj), which involves concatenating a number of parameters into a string, hashing it with SHA-1 and encoding it in BASE64. This is where I get stuck. I’ve seen that a “Crypto” node lets me do this, but I’ve tried several times and I get an error message: ERROR: error:1E08010C:DECODER routines::unsupported What is the error messag…

---

_[View the full topic](https://community.n8n.io/t/having-hard-time-using-crypto-js-module-on-code-node/79923)._
