calc-signature()
The calc-signature
function calculates a signature from the given input
using the given private_key
(in PEM format, with or without boundaries). The optional parameter passphrase
is the pass phrase for decrypting an encrypted private key (the default is the empty string). The optional parameter algorithm
is the signing algorithm (the default is SHA256
). The resulting signature is Base64-encoded.
See Private Key Format for the supported private key format.
Supported Algorithms
DSA
DSA-SHA
MD2
MD4
MD5
RIPEMD160
SHA
SHA1
SHA224
SHA256
SHA384
SHA512
dsaEncryption
dsaWithSHA
ecdsa-with-SHA1
md2
md4
md5
ripemd160
sha
sha1
sha224
sha256
sha384
sha512
Example
See also
Last updated