hybrid-ecies
Version:
Hybrid EC encryption scheme that EC curve secp256k1, and chacha20-poly1305 or aes-256-gcm to encrypt data. The returned data is a packed Buffer with the public key, nonce/iv, tag, and encrypted data.
29 lines (20 loc) • 547 B
Markdown
[](https://travis-ci.com/aellison5505/Hybrid-ECIES)
```
Install nodejs
npm i hybrid-ecies
npm test
```
```typescript
// Typescript
import { ECIES, JWK } from 'hybrid-ecies';
let ecies = new ECIES();
// use ecies to call methods
```
```javascript
// javascript
const { ECIES } = require('hybrid-ecies');
let ecies = new ECIES();
// use ecies to call methods
```