aes-utils-zero
v1.0.2
Published
AES-GCM encryption with passphrase using Web Crypto API and zero dependencies
Readme
aes-utils-zero
🔐 Advanced AES-GCM encryption utilities using the native Web Crypto API.
Zero dependencies. Perfect for frontend TypeScript/React apps.
Features
- AES-GCM encryption using passphrase (string) instead of CryptoKey
- Includes PBKDF2 key derivation, encryption and decryptions
Install
npm install aes-utils-zeroUsage
import { decryptWithPassphrase, decryptWithPassphrase } from "aes-utils-zero";
const passphrase = "my-secure-password";
const encrypted = await encryptWithPassphrase("Hello!", passphrase);
console.log("Encrypted:", encrypted);
const decrypted = await decryptWithPassphrase(encrypted, passphrase);
console.log("Decrypted:", decrypted);