t-secret

1.0.4 • Public • Published

t-secret

Project setup

npm install t-secret --save-dev;
or
yarn install t-secret --save-dev;

Cite

import { encrypt, decrypt } from 't-secret';

Employ

params: any
SECRET_KEY : Not Required, Length: 16

//  加密
encrypt(params, SECRET_KEY);
//  解密
decrypt(params, SECRET_KEY);


encrypt error: 
    type: String

Customize configuration

See API.

Readme

Keywords

Package Sidebar

Install

npm i t-secret

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

420 kB

Total Files

54

Last publish

Collaborators

  • the.one