@namesmt/aes-gcm
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@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

  • [x] 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

Package Sidebar

Install

npm i @namesmt/aes-gcm

Weekly Downloads

6

Version

1.0.0

License

MIT

Unpacked Size

9.45 kB

Total Files

5

Last publish

Collaborators

  • namesmt