data-encryption-for-analytics-by-dmytro
v2.4.8
Published
JavaScript package for encrypting and decrypting data in analytics applications. Uses AES-256-CBC encryption with Initialization Vector (IV) for enhanced security.
Downloads
6
Maintainers
Readme
# Data Encryption for Analytics
A JavaScript package for secure data encryption and decryption in analytics applications. This package utilizes the AES-256-CBC encryption algorithm along with Initialization Vector (IV) for enhanced security.
## Installation
Install the package using npm:
```bash
npm install data-encryption-analytics
Usage
const dataEncryption = require('data-encryption-analytics');
// Example data
const sensitiveData = { /* Your sensitive data */ };
// Encryption
const encryptionKey = 'your-secret-key';
const encryptedData = dataEncryption.encrypt(sensitiveData, encryptionKey);
// Decryption
const decryptedData = dataEncryption.decrypt(encryptedData.encryptedData, encryptionKey, encryptedData.iv);
Features
- Secure Encryption: Utilizes AES-256-CBC algorithm for robust encryption.
- Initialization Vector (IV): Enhances security with a random Initialization Vector.
- Ease of Use: Simple API for encrypting and decrypting data in analytics applications.
Contributing
Feel free to contribute by opening issues or submitting pull requests on the GitHub repository.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Customize the sections as needed, and include more information about specific features, examples, or any other relevant details about your package.