node-red-contrib-checksum 1.2.0

Calculates, using crypto-js, the checksum of a given string or file and compares it with the hash provided. Returns a boolean if the checksum is correct (true) or wrong (false).

npm install node-red-contrib-checksum

A simple checksum utility for Node-RED, based on crypto-js. Supports MD5, SHA-1, SHA-512, SHA-384, SHA-256, SHA-224, Keccak (at 512, 384, 256 or 224 bits) and RIPEMD-160.


Node-RED installed. Latest version should work fine.


Install via Node-RED Manage Palette


Install via npm

$ cd ~/.node-red
$ npm install node-red-contrib-checksum

If necessary, restart Node-RED.

How to use

There are 5 options in the Properties tab of the node:

  • File/String: string, or path to the file, to be hashed;
  • Checksum: hash string, or path to the file with it, to compare with the hashing result;
  • Hash function: allows to choose the necessary function between those supported;
  • The input payload is a file: specifies if 'File/String' contains a string to be passed directly to the function or a path to a file that has to be read first;
  • The input checksum is a file: specifies if 'Checksum' contains a string to be passed directly to the function or a path to a file containing the hash.

The first 3 fields can be specified using strings or the msg attributes containing the value. In case of the hash function, the value provided must be a string and one of the hash functions listed as supported.

The node returns a boolean if everything works correctly: true if the checksum given matches the one obtained from the hash function, false otherwise.


As an implementation example with files, see this flow.


Feel free to add more options or whatever may be of use.

Node Info

Version: 1.2.0
Updated 3 months ago
Rating: not yet rated




13 in the last week


  • checksum


  • node-red
  • checksum
  • crypto-js
  • sha512
  • sha256
  • sha1
  • md5
  • keccak
  • ripemd160