Skip to content

bitbrain-za/node-red-contrib-crypto-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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>,

About

crypto helper nodes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published