@thinkives/encry
TypeScript icon, indicating that this package has built-in type declarations

1.0.34 • Public • Published

@thinkives/encry

使用说明

import { Encry } from '@thinkives/encry'

// 传入密钥配置
const encry = new Encry({
  secret: '',
  merchant_key: '',
  subject_key: '',
  encrypted: true
})


// 传入具体数据进行加密 data param 皆可
const encrypted = encry.run({})

使用须知

本加密包是基于某开发人员的封装重写而来,去除了 添加 'columnNo' 以及 headers 等无关加密的逻辑。

传入的加密数据只能是单纯的请求数据 request.config.data,不包括整个请求对象。

Readme

Keywords

none

Package Sidebar

Install

npm i @thinkives/encry

Weekly Downloads

0

Version

1.0.34

License

ISC

Unpacked Size

41.8 kB

Total Files

10

Last publish

Collaborators

  • hasayake