summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
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: