node-red-contrib-crypto-utils
v1.0.1
Published
Some crypto utilities
Downloads
157
Readme
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>,