1.0.7 • Published 1 year ago
request-rsa-sign v1.0.7
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"
}
}