This is a subflow node for encrypting / decrypting payloads and creating encrypted stores on the specified folder utilizing AES for Block Ciphering and Rabbit for Stream Ciphering preserving the confidentiality of payloads.
Run the following command in your Node-RED user directory - typically ~/.node-red
npm install node-red-contrib-crypto-storage
- โน๏ธ Encrypt: POST localhost:1880/encrypt
- โน๏ธ Decrypt: POST localhost:1880/decrypt
The plaintext payload can be either a string or an object, you must define the function to use (encrypt
/decrypt
), the cipher key and the type of cipher to use (AES
/Block Cipher or Rabbit
/Stream Cipher).
AES
, the mode (CBC/CFB/OFB/CTR
) parameter must also be set!
- Setting the payload of the Cipher Encrypt injector:
- Encryption response payload:
- Setting the payload of the Cipher Decrypt injector:
- Decryption response payload:
- โน๏ธ AES: POST localhost:1880/blockStore
- โน๏ธ Rabbit: POST localhost:1880/streamStore
The plaintext payload can be either a string or an object, you must define the function to use (encrypt
/decrypt
), the cipher key and the filename of the crypto storage.
You firstly need to define the path of the store in the properties of the subflow:
AES
, the mode (CBC/CFB/OFB/CTR
) parameter must also be set!
- Setting the payload of the Store Encrypt injector:
- Store encryption response payload:
- Setting the payload of the Store Decrypt injector:
- Store decryption response payload: