Skip to content

Commit fbd32d6

Browse files
author
Shigeki Ohtsu
committed
docs: remove md5 and sha1 in crypto example
1 parent 1eec927 commit fbd32d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/crypto.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ Creates and returns a hash object, a cryptographic hash with the given
8888
algorithm which can be used to generate hash digests.
8989

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

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

102-
var shasum = crypto.createHash('sha1');
102+
var shasum = crypto.createHash('sha256');
103103

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

0 commit comments

Comments
 (0)