The hash/digest algorithm to use.
The private key to sign the message with.
The payload to be signed, can be a Buffer
or a string
.
Optional
opts: IRsaOptionsThe options for signing, including the passphrase of the private key and the padding algorithm.
Return a Buffer
that contains the signature of the payload.
Hash a message with the specified hash/digest algorithm.