1.0.2 • Published 5 months ago

my-encryption-package v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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);

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago

0.0.5

1 year ago