Socket
Socket
Sign inDemoInstall

aesid

Package Overview
Dependencies
2
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aesid

aes for sid


Version published
Maintainers
1
Install size
58.6 kB
Created

Readme

Source

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

Keywords

FAQs

Last updated on 31 Mar 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc