Current location - Quotes Website - Personality signature - Does Nodejs module support the signature method of SHA1WITRSA?
Does Nodejs module support the signature method of SHA1WITRSA?
Crypto module of Node.js is nothing more than wrapper of OpenSSL.

crypto . create sign(' RSA-sha 1 ')

So if you want to know what algorithms crypto supports, just look at the OpenSSL documentation. Man openssl looks at it himself, not copying other people's demo. I want to change the library to solve the problem. This is essentially lazy thinking.

Don't ask others casually whether RSA-SHA 1 and SHA 1WithRSA are the same. I tell you they are the same, can you believe it? What if I'm wrong? Think with your own brain.

OpenSSL supports the following message digest algorithms.

$ openssl List-Message Digest-Algorithm

Directory System Agent (directory system agent)

DSA-SHA

DSA-SHA 1 = > Directory System Agent

DSA-sha 1-old = & gt; DSA-SHA 1

DSS 1 = >DSA-SHA 1

MD4

Message summary 5

RIPEMD 160

RSA-MD4 = & gt; MD4

RSA-MD5 = & gt; Message summary 5

RSA-RIPEMD 160 = >RIPEMD 160

RSA-SHA = & gt; Stellar hour angle

RSA-sha 1 = & gt; SHA 1

RSA-SHA 1-2 = >RSA-SHA 1

RSA-SHA224 = >SHA224

RSA-sha 256 = & gt; SHA256

RSA-sha 384 = & gt; SHA384

RSA-SHA5 12 = >SHA5 12

Stellar hour angle

SHA 1

SHA224

SHA256

SHA384

SHA5 12

Directory System Agent (directory system agent)

DSA-SHA

dsawithsha 1 = & gt; Directory System Agent (directory system agent)

dss 1 = >DSA-SHA 1

ecdsa-with-SHA 1

MD4

md4WithRSAEncryption = & gtMD4

Message summary 5

Md5WithRSAEncryption => message digest 5

ripemd = & gtRIPEMD 160

RIPEMD 160

ripemd 160WithRSA = >RIPEMD 160

rmd 160 = >RIPEMD 160

Stellar hour angle

SHA 1

sha 1WithRSAEncryption = >SHA 1

SHA224

sha224WithRSAEncryption = >SHA224

SHA256

sha256WithRSAEncryption = >SHA256

SHA384

sha384WithRSAEncryption = >SHA384

SHA5 12

sha5 12WithRSAEncryption = >SHA5 12

ShaWithRSAEncryption => stellar hour angle

SSL 2-MD5 = & gt; Message summary 5

SSL 3-MD5 = & gt; Message summary 5

SSL 3-sha 1 = & gt; SHA 1

whirlpool