aes-lite-node
v0.0.1
Published
Pure JavaScript AES-CBC encryption for Node.js (no native dependencies)
Downloads
108
Maintainers
Readme
aes-lite-node
Lightweight AES-256-GCM encryption for Node.js using native crypto.
Install
npm install aes-lite-node
Usage
import { generateKey, encrypt, decrypt } from "aes-lite-node";
const key = generateKey(32);
const result = encrypt("hello world", key);
const decrypted = decrypt( result.encrypted, key, result.iv, result.authTag );
console.log(decrypted);
Features
- AES-128 / 192 / 256 support
- AES-GCM authenticated encryption
- Native Node.js crypto
- No third-party dependencies
MIT License
