node-red-contrib-crypto-utils 1.0.1

Some crypto utilities

npm install node-red-contrib-crypto-utils

Node red Crypto utilities

Overview

Some nodes that wrap Node.js Crypto.

AES

Algorithm: aes-256-cbc

encrypt

input (msg.paylaod):

{
	"key": <string> | <ArrayBuffer> | <Buffer> | <TypedArray> | <DataView> | <KeyObject> | <CryptoKey>,
	"data": <Buffer>
}

output:

{
	"encryptedData": <Buffer>,
	"initVector": <Buffer>
}

decrypt

input (msg.paylaod):

{
	"key": <string> | <ArrayBuffer> | <Buffer> | <TypedArray> | <DataView> | <KeyObject> | <CryptoKey>,
	"data": <Buffer>
	"initVector": <Buffer>
}

output:

	"payload": <Buffer>,

RSA

encrypt

input (msg.paylaod):

{
	"publicKey": <string> | <ArrayBuffer> | <Buffer> | <TypedArray> | <DataView> | <KeyObject> | <CryptoKey>,
	"data": <string> | <ArrayBuffer> | <Buffer> | <TypedArray> | <DataView> | <object>
}

output:

	"payload": <cBuffer>

decrypt

input (msg.paylaod):

{
	"privateKey": <string> | <ArrayBuffer> | <Buffer> | <TypedArray> | <DataView> | <KeyObject> | <CryptoKey>,
	"data": <Buffer>
}

output:

	"payload": <Buffer>,

SHA256

input (msg.paylaod):

	"payload": <string> | <ArrayBuffer> | <Buffer> | <TypedArray>

output:

	"payload": <Buffer>,

Node Info

Version: 1.0.1
Updated 3 years, 6 months ago
License: MIT
Rating: 5.0 1

Categories

Actions

Rate:

Downloads

38 in the last week

Nodes

  • aes-encrypt
  • aes-decrypt
  • rsa-encrypt
  • rsa-decrypt
  • sha256

Keywords

  • node-red
  • crypto
  • aes
  • rsa
  • sha256

Maintainers