summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-10-13 02:44:11 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2012-10-13 02:55:14 +0200
commit14a6c4efb853fe853698b9c8d6dc619fbe8a206d (patch)
tree2c18fd5175ebcef4a1e1c6018b6c127a77c7d192 /doc/api
parentf53441ab1f5a6d479928de388660dd83029fa058 (diff)
downloadnode-14a6c4efb853fe853698b9c8d6dc619fbe8a206d.tar.gz
crypto: add crypto.getHashes()
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/crypto.markdown10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown
index 3270808a2..e4d43467b 100644
--- a/doc/api/crypto.markdown
+++ b/doc/api/crypto.markdown
@@ -21,6 +21,16 @@ Example:
console.log(ciphers); // ['AES128-SHA', 'AES256-SHA', ...]
+## crypto.getHashes()
+
+Returns an array with the names of the supported hash algorithms.
+
+Example:
+
+ var hashes = crypto.getHashes();
+ console.log(hashes); // ['sha', 'sha1', 'sha1WithRSAEncryption', ...]
+
+
## crypto.createCredentials(details)
Creates a credentials object, with the optional details being a dictionary with keys: