# bitcore-ecies-dash

> ECIES implemented for Bitcore-Dash.

Latest version **1.0.4** (published 2017-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install bitcore-ecies-dash
pnpm add bitcore-ecies-dash
yarn add bitcore-ecies-dash
bun add bitcore-ecies-dash
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2017-10-10 |
| First published | 2016-07-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | BitPay |
| Maintainers | alex-werner, andyfreer |
| Keywords | dash, bitcore, ecies, crypto, cryptography, encryption |

## Links

- npm: https://www.npmjs.com/package/bitcore-ecies-dash
- Repository: https://github.com/dashevo/bitcore-ecies-dash
- Issues: https://github.com/dashevo/bitcore-ecies-dash/issues
- npm.io page: https://npm.io/package/bitcore-ecies-dash

## Dependencies (2)

- [aes](https://npm.io/package/aes.md) ^0.1.0
- [bitcore-lib-dash](https://npm.io/package/bitcore-lib-dash.md) ^0.15.0

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2017-10-10
- 1.0.3 — 2016-08-17
- 1.0.2 — 2016-07-24
- 1.0.1 — 2016-07-14

## README

# ECIES for Bitcore-Dash

[![NPM Package](https://img.shields.io/npm/v/bitcore-ecies-dash.svg?style=flat-square)](https://www.npmjs.org/package/bitcore-ecies-dash)
[![Build Status](https://img.shields.io/travis/dashpay/bitcore-ecies-dash.svg?branch=master&style=flat-square)](https://travis-ci.org/dashpay/bitcore-ecies-dash)
[![Coverage Status](https://img.shields.io/coveralls/dashpay/bitcore-ecies-dash.svg?style=flat-square)](https://coveralls.io/r/dashpay/bitcore-ecies-dash)

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

See [the main bitcore-dash repo](https://github.com/dashpay/bitcore-dash) or the [bitcore guide on ECIES](http://bitcore.io/guide/module/ecies/index.html) for more information.

Credit to [@ryanxcharles][ryan] for the original implementation.

## Getting started

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

```javascript
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](https://github.com/dashpay/bitcore-dash/blob/master/CONTRIBUTING.md) on the main bitcore-dash repo for information about how to contribute.

## License

Code released under [the MIT license](https://github.com/bitpay/bitcore/blob/master/LICENSE).

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

[bitcore-dash]: http://github.com/dashpay/bitcore-dash
[ECIES]: http://en.wikipedia.org/wiki/Integrated_Encryption_Scheme
[ryan]: http://github.com/ryanxcharles

---
_Source: https://npm.io/package/bitcore-ecies-dash · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
