Socket
Socket
Sign inDemoInstall

node-red-contrib-elliptic-curve-cryptography

Package Overview
Dependencies
28
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-red-contrib-elliptic-curve-cryptography

Simple ECC cryptography with BIP 39 wordlist


Version published
Maintainers
1
Install size
8.10 MB
Created

Readme

Source

node-red-contrib-elliptic-curve-cryptography

I need a Node in NodeRed that generate similar result what this command generate in linux. xxd creates a hex dump of a given file or standard input. It can also convert a hex dump back to its original binary form. Reverse (-r) operation: convert (or patch) hexdump into binary. Also (-p) known as plain hexdump style.

On the commandline:

echo -n '16432a207785ec5c4e5a226e3bde819d' | xxd -r -p | sha256sum -b | awk '{print $1}'

This command outputs:

7aa0c5dba5ab65301e23532af8a1730d40068cd32ebafaa5765de0d9bd9ef60f

The node "hash-sha256-hex" has dependencies with "eosjs-ecc" "4.0.7" from https://github.com/IT-Berater/eosjs-ecc for the hash sha256 (binary) function.

What this command does is first given an hexadecimal string, convert it to binary, and display the sha256 hash of the binary data in hexadecimal.

Different libraries put simply the output with sha256 hash the string.

If you need the normal sha256 with different hash output, you can use the node-red-contrib-cryptography Node:

echo -n '16432a207785ec5c4e5a226e3bde819d' | ./sha256sum

This command other outputs:

dc88aa37112eec5b02c3b082cb581ee567a9de1c7d4a50851bd3c6e6707c96cc

BIP39 Wordlist

The node "bip39 wordlist" used the dependencies "bip39": "3.0.3". You can simple generate a BIP39 Wordlist with 12 words. Its gnerate a hex Seed for this words.

You can typed your onwn words and create the Checksum and Seed. The node validates this input words.

Sample Flow: image

Gui:

image

Keywords

FAQs

Last updated on 28 Feb 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc