Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sha.js

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sha.js - npm Package Compare versions

Comparing version 2.3.6 to 2.4.0

sha.js

1

index.js

@@ -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')

2

package.json
{
"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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc