Skip to content

Instantly share code, notes, and snippets.

@wires
Created December 1, 2016 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wires/cce267163d488d9c97b5c6a5b83d15c4 to your computer and use it in GitHub Desktop.
Save wires/cce267163d488d9c97b5c6a5b83d15c4 to your computer and use it in GitHub Desktop.
Listing of implemented hash functions in Node
[ "DSA",
"DSA-SHA",
"DSA-SHA1",
"DSA-SHA1-old",
"RSA-MD4",
"RSA-MD5",
"RSA-MDC2",
"RSA-RIPEMD160",
"RSA-SHA",
"RSA-SHA1",
"RSA-SHA1-2",
"RSA-SHA224",
"RSA-SHA256",
"RSA-SHA384",
"RSA-SHA512",
"dsaEncryption",
"dsaWithSHA",
"dsaWithSHA1",
"dss1",
"ecdsa-with-SHA1",
"md4",
"md4WithRSAEncryption",
"md5",
"md5WithRSAEncryption",
"mdc2",
"mdc2WithRSA",
"ripemd",
"ripemd160",
"ripemd160WithRSA",
"rmd160",
"sha",
"sha1",
"sha1WithRSAEncryption",
"sha224",
"sha224WithRSAEncryption",
"sha256",
"sha256WithRSAEncryption",
"sha384",
"sha384WithRSAEncryption",
"sha512",
"sha512WithRSAEncryption",
"shaWithRSAEncryption",
"ssl2-md5",
"ssl3-md5",
"ssl3-sha1",
"whirlpool" ]
#!/bin/sh
# This lists out all implemented hash functions from node js
# https://nodejs.org/api/crypto.html#crypto_crypto_gethashes
# Node uses OpenSSL to provide these functions
echo "console.log(require('crypto').getHashes())" | node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment