Socket
Socket
Sign inDemoInstall

eth-ecies

Package Overview
Dependencies
9
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eth-ecies

ECIES encrypt/decrypt library for Ethereum


Version published
Weekly downloads
41
decreased by-28.07%
Maintainers
1
Install size
337 kB
Created
Weekly downloads
 

Readme

Source

eth-ecies

ECIES encrypt/decrypt library for Ethereum

Usage

Encrypt

const ecies = require("eth-ecies");
let plaintext = new Buffer(`{foo:"bar",baz:42}`);
let encryptedMsg = ecies.encrypt(ethPubKey, plaintext);
// encrypted message is a 113+ byte buffer

Decrypt

const ecies = require("eth-ecies");
let plaintext = ecies.decrypt(ethPrivKey, encryptedMsg);

Notes

To derive the public key from a private key, you can use ethereumjs-util module

Security

The ECIES implementation uses fixed Diffie-Hellman (ephemeral-static) key exchange and provides no Perfect Forward Secrecy (PFS). AES-256-CBC is used as AEAD algorithm.

FAQs

Last updated on 28 Aug 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