request-rsa-sign
v1.0.7
Published
rsa数字签名
Downloads
7
Readme
request-rsa-sign
A Digital Signature Method Based on 'jsrsasign'
Setup
Install
npm i request-rsa-sign
Client code
import { RSASign } from 'request-rsa-sign'
// privateKey
const SIGN = new RSASign({ privateKey: privateKey })
// Return signed and timestamped data
SIGN.setSign(params)
API
new RSASign({ privateKey: privateKey, signatureOptions: opts })
The following default values of opts
can be overwritten:
{
privateKey: 'your private key',
// The options of 'jsrsasign'
signatureOptions: {
"alg": "SHA1withRSA"
}
}