0.0.6 • Published 1 year ago

node-red-contrib-crypto-storage v0.0.6

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

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!

CipherAPI


Cipher Encrypt Payload :key: :arrow_right:

  • Setting the payload of the Cipher Encrypt injector:

CE1


Cipher Encrypt Result :lock: :back:

  • Encryption response payload:

CE2


Cipher Decrypt Payload :key: :arrow_right:

  • Setting the payload of the Cipher Decrypt injector:

DE1


Cipher Decrypt Result :unlock: :back:

  • Decryption response payload:

DE2

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.

CipherStoreAPI

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!

CSO


Store Encrypt Payload :key: :arrow_right: :toolbox:

  • Setting the payload of the Store Encrypt injector:

CSB1


Store Encrypt Result :lock: :back: :toolbox:

  • Store encryption response payload:

CSB2


Store Decrypt Payload :key: :arrow_right: :toolbox:

  • Setting the payload of the Store Decrypt injector:

DSB1


Store Decrypt Result :unlock: :back: :toolbox:

  • Store decryption response payload:

DSB2

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago