Comparing version 2.3.6 to 2.4.0
@@ -8,2 +8,3 @@ var exports = module.exports = function (alg) { | ||
exports.sha = require('./sha') | ||
exports.sha1 = require('./sha1') | ||
@@ -10,0 +11,0 @@ exports.sha224 = require('./sha224') |
{ | ||
"name": "sha.js", | ||
"description": "streaming sha1 hash in pure javascript", | ||
"version": "2.3.6", | ||
"version": "2.4.0", | ||
"homepage": "https://github.com/crypto-browserify/sha.js", | ||
@@ -6,0 +6,0 @@ "repository": { |
# sha.js | ||
Streamable SHA1 hash in pure javascript. | ||
Streamable SHA hashes in pure javascript. | ||
@@ -14,3 +14,2 @@ [![build status](https://secure.travis-ci.org/dominictarr/sha.js.png)](http://travis-ci.org/dominictarr/sha.js) | ||
var sha1 = createHash('sha1') | ||
var sha256 = createHash('sha256') | ||
@@ -20,3 +19,9 @@ 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') | ||
``` | ||
@@ -28,5 +33,7 @@ | ||
* sha1 | ||
* sha256 | ||
* sha512 | ||
* sha1 (legacy, no not use in new systems) | ||
* sha (legacy, no not use in new systems) | ||
@@ -33,0 +40,0 @@ ## Note |
@@ -68,2 +68,3 @@ | ||
vectors.forEach(function (v, i) { | ||
makeTest('sha', i) | ||
makeTest('sha1', i) | ||
@@ -70,0 +71,0 @@ makeTest('sha224', i) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29685
18
914
55