simple-crypto-node
v1.0.0
Published
A simple Node.js encryption and decryption library using AES-256
Maintainers
Readme
Simple Crypto Node
A simple Node.js library for AES-256 encryption and decryption.
Installation
npm install simple-crypto-nodeUsage
const cryptoLib = require('simple-crypto-node');
const key = '12345678901234567890123456789012'; // 32 chars key
const message = 'Hello World!';
const encrypted = cryptoLib.encrypt(message, key);
console.log('Encrypted:', encrypted);
const decrypted = cryptoLib.decrypt(encrypted, key);
console.log('Decrypted:', decrypted);License
MIT s
