node-red-contrib-crypto-storage

0.0.6 • Public • Published

node-red-contrib-crypto-storage 📦

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.

Install

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

    npm install node-red-contrib-crypto-storage

Cipher API 🔐

  • ℹ️ 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).

⚠️ In the case of AES, the mode (CBC/CFB/OFB/CTR) parameter must also be set!

CipherAPI


Cipher Encrypt Payload 🔑 ➡️

  • Setting the payload of the Cipher Encrypt injector:

CE1


Cipher Encrypt Result 🔒 🔙

  • Encryption response payload:

CE2


Cipher Decrypt Payload 🔑 ➡️

  • Setting the payload of the Cipher Decrypt injector:

DE1


Cipher Decrypt Result 🔓 🔙

  • Decryption response payload:

DE2

Cipher Store API 🧰

  • ℹ️ 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.

CipherStoreAPI

You firstly need to define the path of the store in the properties of the subflow:

⚠️ In the case of AES, the mode (CBC/CFB/OFB/CTR) parameter must also be set!

CSO


Store Encrypt Payload 🔑 ➡️ 🧰

  • Setting the payload of the Store Encrypt injector:

CSB1


Store Encrypt Result 🔒 🔙 🧰

  • Store encryption response payload:

CSB2


Store Decrypt Payload 🔑 ➡️ 🧰

  • Setting the payload of the Store Decrypt injector:

DSB1


Store Decrypt Result 🔓 🔙 🧰

  • Store decryption response payload:

DSB2

Package Sidebar

Install

npm i node-red-contrib-crypto-storage

Weekly Downloads

2

Version

0.0.6

License

Apache-2.0

Unpacked Size

231 kB

Total Files

16

Last publish

Collaborators

  • doth-j