1.0.5 • Published 1 year ago

@gocmf/sign v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

gocmf-sign

a signature library for gocmf.

Node.js (Install)

Requirements:

  • Node.js
  • npm (Node.js package manager)
npm install @gocmf/sign

Usage

ES6 import for typical API call signing use case:

import sign from '@gocmf/sign'
const params = {
    name: 'gouguoyin',
    age: 18,
    sex: ''
}
const secretKey = 'gocmf'
const timestamp = Date.now()
const signature = sign.generate(params, secretKey, timestamp);
1.0.5

1 year ago

1.0.4

1 year ago