Skip to content

Commit

Permalink
docs: remove md5 and sha1 in crypto example
Browse files Browse the repository at this point in the history
  • Loading branch information
Shigeki Ohtsu committed Jul 27, 2015
1 parent 1eec927 commit fbd32d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/crypto.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ Creates and returns a hash object, a cryptographic hash with the given
algorithm which can be used to generate hash digests.

`algorithm` is dependent on the available algorithms supported by the
version of OpenSSL on the platform. Examples are `'sha1'`, `'md5'`,
`'sha256'`, `'sha512'`, etc. On recent releases, `openssl
version of OpenSSL on the platform. Examples are `'sha256'`,
`'sha512'`, etc. On recent releases, `openssl
list-message-digest-algorithms` will display the available digest
algorithms.

Expand All @@ -99,7 +99,7 @@ Example: this program that takes the sha1 sum of a file
var crypto = require('crypto');
var fs = require('fs');

var shasum = crypto.createHash('sha1');
var shasum = crypto.createHash('sha256');

var s = fs.ReadStream(filename);
s.on('data', function(d) {
Expand Down

0 comments on commit fbd32d6

Please sign in to comment.