File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -11,21 +11,28 @@ Streamable SHA hashes in pure javascript.
11
11
``` js
12
12
var createHash = require (' sha.js' )
13
13
14
- var sha1 = createHash (' sha1' )
15
14
var sha256 = createHash (' sha256' )
16
15
var sha512 = createHash' sha512' )
17
16
18
17
var h = sha1 .update (' abc' , ' utf8' ).digest (' hex' )
19
- console .log (h) // a9993e364706816aba3e25717850c26c9cd0d89d
18
+ console .log (h) // ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
19
+
20
+ // LEGACY, do not use in new systems:
21
+ var sha0 = createHash (' sha' )
22
+ var sha1 = createHash (' sha1' )
23
+
24
+
20
25
```
21
26
22
27
## supported hashes
23
28
24
29
sha.js currently implements:
25
30
26
- * sha1
31
+
27
32
* sha256
28
33
* sha512
34
+ * sha1 (legacy, no not use in new systems)
35
+ * sha (legacy, no not use in new systems)
29
36
30
37
## Note
31
38
You can’t perform that action at this time.
0 commit comments