crypto.createVerify(algorithm[, options])
algorithm
{string}options
{Object} [stream.Writable
options][]- Returns: {Verify}
Creates and returns a Verify
object that uses the given algorithm.
Use [crypto.getHashes()
][] to obtain an array of names of the available
signing algorithms. Optional options
argument controls the
stream.Writable
behavior.
In some cases, a Verify
instance can be created using the name of a signature
algorithm, such as 'RSA-SHA256'
, instead of a digest algorithm. This will use
the corresponding digest algorithm. This does not work for all signature
algorithms, such as 'ecdsa-with-SHA256'
, so it is best to always use digest
algorithm names.
Feedback
Was this page helpful?
很高兴听到! 请告诉我们,我们如何才能改善.
很遗憾听到这个消息。 请告诉我们,我们如何才能改善.
最后修改 April 16, 2020: 加密 (a75e592)