Skip to content
generated from NamesMT/starter-ts

Dead simple, modern, cross-platform AES-GCM encryption util package.

License

Notifications You must be signed in to change notification settings

NamesMT/aes-gcm

Repository files navigation

@namesmt/aes-gcm TypeScript heart icon

npm version npm downloads Codecov Bundlejs jsDocs.io

@namesmt/aes-gcm is a dead simple cross-platform AES-GCM encryption util package.

Note: The result of encrypt function is the string of base64 encoded IV and ciphertext, concatenated with a separator.

Features

  • TypeScript ready!

Usage

Install package:

# npm
npm install @namesmt/aes-gcm

# yarn
yarn add @namesmt/aes-gcm

# pnpm (recommended)
pnpm install @namesmt/aes-gcm

Import:

// ESM
import { decrypt, encrypt } from '@namesmt/aes-gcm'

const plaintext = 'Hello, world!'
const password = 'pw'
const encrypted = await encrypt(plaintext, password)
const decrypted = await decrypt(encrypted, password)

Roadmap

  • Become the legendary 10000x developer

License License

MIT License © 2024 NamesMT

About

Dead simple, modern, cross-platform AES-GCM encryption util package.

Resources

License

Stars

Watchers

Forks

Packages

No packages published