Skip to content

Commit 8eb102b

Browse files
committed
example is sha256 not sha1
1 parent 69bca08 commit 8eb102b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var createHash = require('sha.js')
1414
var sha256 = createHash('sha256')
1515
var sha512 = createHash('sha512')
1616

17-
var h = sha1.update('abc', 'utf8').digest('hex')
17+
var h = sha256.update('abc', 'utf8').digest('hex')
1818
console.log(h) //ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
1919

2020
//LEGACY, do not use in new systems:

0 commit comments

Comments
 (0)