1.0.7 • Published 1 year ago

request-rsa-sign v1.0.7

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

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"
    }
}
1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago