aesid
TypeScript icon, indicating that this package has built-in type declarations

4.0.3 • Public • Published

AESID

NPM Version NPM Downloads NPM License Install Size

Install

npm install aesid --save

Usage

import { AesId } from 'aesid';
const sidAes = new AesId([
    // mulit versions
    { version: 2, aes: 'old test aes key' },
    { version: 5, aes: 'new test aes key' },
  ], {
    userid: true,   // true/false/auto
  });

const sid = sidAes.encrypt('encrypt content', 'userid');
const content = sidAes.decrypt(sid, 'userid');

Upgrade

3.x => 4.x

  • export AesId class
  • remove is func

Readme

Keywords

Package Sidebar

Install

npm i aesid

Weekly Downloads

4

Version

4.0.3

License

MIT

Unpacked Size

8.09 kB

Total Files

5

Last publish

Collaborators

  • bacra