Code Monkey home page Code Monkey logo

node-red-contrib-crypto-storage's Introduction

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

node-red-contrib-crypto-storage's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.