node-red-contrib-hash-helper

0.0.3 • Public • Published

node-red-contrib-hash-helper 📦

This is a subflow node for generating and verifying SHA digested hashes from user defined payload.

Install ⚡

Run the following command in your Node-RED user directory - typically ~/.node-red

    npm install node-red-contrib-hash-helper

Generator API ⚙️

  • ℹ️ POST localhost:1880/generate

The data payload can be either a string or an object, you must define the function to use (SHA/HMAC) and the version of the algorithm (1/224/256/384/512/3)

GeneratorAPI

Generating Hash 📥 ➡️

  • Setting the payload of the Generate Hash injector:

SHA1

Hash Result 🧾 🔙

  • Hash response payload:

SHA2


Generating HMAC 📥 ➡️

⚠️ In the case of HMAC, the key parameter must also be set!

  • Setting the payload of the Generate Hash injector:

HMAC1

HMAC Result 🧾 🔙

  • HMAC response payload:

HMAC2

Verifier API 🧰

  • ℹ️ POST localhost:1880/verify

The data payload can be either a string or an object, you must define the function to use (SHA/HMAC), the version of the algorithm (1/224/256/384/512/3) and the hash to verify.

VerifierAPI

Verifying Hash 📥 ➡️

  • Setting the payload of the Verify Hash injector:

SHA3

Hash Verification Result 🧾 🔙

  • Hash response payload:

SHA4


Verifying HMAC 📥 ➡️

⚠️ In the case of HMAC, the key parameter must also be set!

  • Setting the payload of the Verify Hash injector:

HMAC3

HMAC Verification Result 🧾 🔙

  • HMAC response payload:

HMAC4

Package Sidebar

Install

npm i node-red-contrib-hash-helper

Weekly Downloads

8

Version

0.0.3

License

Apache-2.0

Unpacked Size

180 kB

Total Files

15

Last publish

Collaborators

  • doth-j