sic-ecies
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/sic-ecies package

1.0.2 • Public • Published

bitcore ecies

# ECIES for bitcore

NPM Package Build Status Coverage Status

A module for bitcore that implements the Elliptic Curve Integrated Encryption Scheme (ECIES). Uses ECIES symmetric key negotiation from public keys to encrypt arbitrarily long data streams.

See the main bitcore repo or the bitcore guide on ECIES for more information.

Credit to @ryanxcharles for the original implementation.

Getting started

ECIES will allow to securely encrypt and decrypt messages using ECDSA key pairs (bitcoin cryptography).

var alice = ECIES()
  .privateKey(aliceKey)
  .publicKey(bobKey.publicKey);

var message = 'some secret message';
var encrypted = alice.encrypt(message);

// encrypted will contain an encrypted buffer only Bob can decrypt

var bob = ECIES()
  .privateKey(bobKey)
  .publicKey(aliceKey.publicKey);
var decrypted = bob
  .decrypt(encrypted)
  .toString();
// decrypted will be 'some secret message'

Contributing

See CONTRIBUTING.md on the main bitcore repo for information about how to contribute.

License

Code released under the MIT license.

Copyright 2013-2015 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    8
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i sic-ecies

Weekly Downloads

8

Version

1.0.2

License

MIT

Unpacked Size

24.9 kB

Total Files

17

Last publish

Collaborators

  • redbutterfly