node-red-contrib-crypto-storage
v0.0.6
Published
Node-RED node for Crypto Storage with Block/Stream Ciphers
Downloads
13
Maintainers
Readme
node-red-contrib-crypto-storage :package:
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 :zap:
Run the following command in your Node-RED user directory - typically ~/.node-red
npm install node-red-contrib-crypto-storage
Cipher API :closed_lock_with_key:
- :information_source: Encrypt: POST localhost:1880/encrypt
- :information_source: 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).
:warning: In the case of AES
, the mode (CBC/CFB/OFB/CTR
) parameter must also be set!
Cipher Encrypt Payload :key: :arrow_right:
- Setting the payload of the Cipher Encrypt injector:
Cipher Encrypt Result :lock: :back:
- Encryption response payload:
Cipher Decrypt Payload :key: :arrow_right:
- Setting the payload of the Cipher Decrypt injector:
Cipher Decrypt Result :unlock: :back:
- Decryption response payload:
Cipher Store API :toolbox:
- :information_source: AES: POST localhost:1880/blockStore
- :information_source: 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:
:warning: In the case of AES
, the mode (CBC/CFB/OFB/CTR
) parameter must also be set!
Store Encrypt Payload :key: :arrow_right: :toolbox:
- Setting the payload of the Store Encrypt injector:
Store Encrypt Result :lock: :back: :toolbox:
- Store encryption response payload:
Store Decrypt Payload :key: :arrow_right: :toolbox:
- Setting the payload of the Store Decrypt injector:
Store Decrypt Result :unlock: :back: :toolbox:
- Store decryption response payload: