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.