Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-encryption

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-encryption - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "node-encryption",
"version": "1.0.1",
"version": "1.0.2",
"description": "This package will simplify the process of encrypting and decrypting data for your application based on the aes-256-gcm algorithm",

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

@@ -33,3 +33,14 @@ # node-encryption

### How to encrypt a file
```javascript
const image = fs.readFileSync('./shyguy.png');
const encryptionKey = 'mysecretkey1337';
const encrypted = encrypt(image, encryptionKey);
const decrytedImageBuffer = decrypt(encrypted, encryptionKey);
```
### License
MIT - see LICENSE
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