Skip to content

Commit

Permalink
hmac
Browse files Browse the repository at this point in the history
  • Loading branch information
wehmann007 authored Feb 13, 2025
1 parent 25a02f1 commit 2c51c9c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 10 additions & 1 deletion cryptojs/hmac.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
category: 'function',
color: '#a6bbcf',
defaults: {
name: {value: ''}, algorithm: {value: '', required: true}, key: {value: '', required: true}
name: {value: ''}, algorithm: {value: '', required: false}, key: {value: '', required: false}
},
inputs: 1,
outputs: 1,
Expand Down Expand Up @@ -40,4 +40,13 @@

<script type="text/x-red" data-help-name="hmac">
<p>Create a keyed-hash message (HMAC) of payload using the specified algorithm.</p>
<p><strong>Input</strong></p>
<p>You can set values dynamically by using:<br/>
<code>msg.algorithm</code> Algorithm<br/>
<code>msg.key</code> Secret Key<br/>
</p>
<p><strong>Output</strong></p>
<p>
<code>msg.payload</code> keyed-hash message (HMAC) output converted to string.
</p>
</script>
1 change: 0 additions & 1 deletion cryptojs/hmac.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ module.exports = function (RED) {
// check configurations
if(!algorithm || !key) {
// rising misconfiguration error
//node.error("Missing configuration, please check your algorithm or key.", msg);

node.error("Missing configuration, please check your algorithm, secret key, mode or padding.", msg);

Expand Down

0 comments on commit 2c51c9c

Please sign in to comment.