[Pkg-javascript-commits] [node-sha.js] 190/237: document legacyness of sha1 and sha0
Bastien Roucariès
rouca at moszumanska.debian.org
Fri May 5 09:03:58 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-sha.js.
commit 4563da67ee0e86e4eea55b844c6ec73f677e094a
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date: Sun Apr 5 17:42:56 2015 +1200
document legacyness of sha1 and sha0
---
README.md | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 2e9f96a..d907b37 100644
--- a/README.md
+++ b/README.md
@@ -11,21 +11,28 @@ Streamable SHA hashes in pure javascript.
``` js
var createHash = require('sha.js')
-var sha1 = createHash('sha1')
var sha256 = createHash('sha256')
var sha512 = createHash'sha512')
var h = sha1.update('abc', 'utf8').digest('hex')
-console.log(h) //a9993e364706816aba3e25717850c26c9cd0d89d
+console.log(h) //ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
+
+//LEGACY, do not use in new systems:
+var sha0 = createHash('sha')
+var sha1 = createHash('sha1')
+
+
```
## supported hashes
sha.js currently implements:
-* sha1
+
* sha256
* sha512
+* sha1 (legacy, no not use in new systems)
+* sha (legacy, no not use in new systems)
## Note
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-sha.js.git
More information about the Pkg-javascript-commits
mailing list