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

0.0.2 • Public • Published

@tshirt/aes

Code Style npm version License MIT
dependencies npm downloads Package Phobia Bundle Phobia

Package to encrypt & decrypt strings using aes-256-gcm.

Install

With yarn:

yarn add @tshirt/aes

With npm:

npm install @tshirt/aes

Usage

Don't use this package to encrypt your passwords, use hashing algorithms like argon2 or bcrypt instead.

import { encrypt, decrypt } from '@tshirt/aes';

const key = 'secureKey';

const encrypted = encrypt(key, 'foo'); // 4lxXNMY0dxjTLtP2i8KV3Fe770+yaEj3KnGUPdKKHn0pgXo=
const decrypted = decrypt(key, encrypted); // foo

Development

  1. Install dependencies using yarn install or npm install
  2. Start development server using yarn watch

Readme

Keywords

Package Sidebar

Install

npm i @tshirt/aes

Weekly Downloads

2

Version

0.0.2

License

UNLICENSED

Unpacked Size

16 kB

Total Files

11

Last publish

Collaborators

  • gomah