node-encryption
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45
4716
5
46