# Cryptojs hmac sha256 node output

**URL:** <https://discourse.nodered.org/t/cryptojs-hmac-sha256-node-output/54240>\
**Category:** General\
**Created:** [25 November 2021 04:25 UTC](https://discourse.nodered.org/t/cryptojs-hmac-sha256-node-output/54240 "2021-11-25T04:25:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DipikaSamanta](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@DipikaSamanta](https://discourse.nodered.org/u/DipikaSamanta)\
**Post date:** [25 November 2021 04:25 UTC](https://discourse.nodered.org/t/cryptojs-hmac-sha256-node-output/54240/1 "2021-11-25T04:25:48Z")

</div>

Hello  
I am using crypto js hmac sha256 node.  
Previously I was getting different output for different message in the debug node.  
Recently I have been getting same value for any message node which is incorrect.

Can anyone please explain me why I am getting the same output in debug node for different messages?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 November 2021 09:13 UTC](https://discourse.nodered.org/t/cryptojs-hmac-sha256-node-output/54240/2 "2021-11-25T09:13:36Z")

</div>

Please tell us which node you are using (node-red-contrib-something possibly) and post a flow with two inject nodes, the crypto node and a debug node. Configure the two inject nodes with different data that gives the same results in the debug node. Then we shall be able to test to see whether we see the problem.

I assume you have added a debug node showing what it going _into_ the node and checked that you are passing in what you think you are.

---

<div class="post-metadata">

**Author:** ![DipikaSamanta](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@DipikaSamanta](https://discourse.nodered.org/u/DipikaSamanta)\
**Post date:** [25 November 2021 09:24 UTC](https://discourse.nodered.org/t/cryptojs-hmac-sha256-node-output/54240/3 "2021-11-25T09:24:55Z")

</div>

Hey  
Thanks for your reply  
I was using Simatic IoT2040 and node red.  
The issue is solve once I restarted my IoT device.  
Even though I don't know why I was getting the same value.  
In the debug node I was getting a constant value only, which was same for any different message though.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 January 2022 09:25 UTC](https://discourse.nodered.org/t/cryptojs-hmac-sha256-node-output/54240/4 "2022-01-24T09:25:25Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
