@cyberadityacode/simple-aes-gcm
v1.0.2
Published
A lightweight AES-GCM encryption library for the browser.
Downloads
408
Maintainers
Readme
AES-GCM Crypto Library
A simple, lightweight wrapper for the Web Crypto API. Intended for Browser/Web Crypto API environments
npm :
https://www.npmjs.com/package/@cyberadityacode/simple-aes-gcm
Installation
npm i @cyberadityacode/simple-aes-gcmUsage
import { deriveKey, encrypt, decrypt } from "simple-aes-gcm";
const key = await deriveKey("my-password", "unique-salt");
const encrypted = await encrypt("Hello World", key);
const originalText = await decrypt(encrypted, key);Author
Aditya Dubey (cyberadityacode)
