my-encryption-package

1.0.2 • Public • Published

my_encryption_package

This a encryption package to provide security for the data stord in database you can use it as given bellow -> const Encryption = require('my-encryption-package');

// Replace 'your-secret-key' with your actual secret key const secretKey = 'asdfghjkl!@#$%^&*';

const encryption = new Encryption(secretKey);

const originalText = 'Hello, this is a secret message!';

// Encrypt the text const encryptedData = encryption.encrypt(originalText);

console.log('Encrypted Data:', encryptedData);

// Decrypt the data const decryptedText = encryption.decrypt(encryptedData);

console.log('Decrypted Text:', decryptedText);

Readme

Keywords

Package Sidebar

Install

npm i my-encryption-package

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

14.4 kB

Total Files

6

Last publish

Collaborators

  • sanu_dev