New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ecies-lite

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ecies-lite - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "ecies-lite",
"version": "1.0.3",
"version": "1.0.4",
"description": "A lightweight ECIES tool implemented in pure Node.JS",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -13,4 +13,2 @@ # ecies-lite

### ECIES
```js

@@ -24,4 +22,10 @@ const crypto = require('crypto'),

let body = ecies.encrypt(publicKey, Buffer.from('This message is for demo purpose'));
for (let k of Object.keys(body)) {
console.log(`${k}(${body[k].length}B):`, body[k].toString('base64'));
/** structure of ECIES body
epk: ephemeral public key;
iv: initialization vector for the cipher algorithm;
ct: cipher text;
mac: MAC value of the above fields along with the derived mac key;
**/
for (let [k, v] of Object.entries(body)) {
console.log(`${k}(${v.length}B):`, v.toString('base64'));
}

@@ -33,2 +37,5 @@

## Dependencies
`crypto` module shipped with Node later than 6.x
## License

@@ -35,0 +42,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc