0.0.3 • Published 1 year ago

node-red-contrib-hash-helper v0.0.3

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
1 year ago

node-red-contrib-hash-helper :package:

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

Install :zap:

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

    npm install node-red-contrib-hash-helper

Generator API :gear:

  • :information_source: 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 :inbox_tray: :arrow_right:

  • Setting the payload of the Generate Hash injector:

SHA1

Hash Result :receipt: :back:

  • Hash response payload:

SHA2


Generating HMAC :inbox_tray: :arrow_right:

:warning: In the case of HMAC, the key parameter must also be set!

  • Setting the payload of the Generate Hash injector:

HMAC1

HMAC Result :receipt: :back:

  • HMAC response payload:

HMAC2

Verifier API :toolbox:

  • :information_source: 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 :inbox_tray: :arrow_right:

  • Setting the payload of the Verify Hash injector:

SHA3

Hash Verification Result :receipt: :back:

  • Hash response payload:

SHA4


Verifying HMAC :inbox_tray: :arrow_right:

:warning: In the case of HMAC, the key parameter must also be set!

  • Setting the payload of the Verify Hash injector:

HMAC3

HMAC Verification Result :receipt: :back:

  • HMAC response payload:

HMAC4

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago