Socket
Socket
Sign inDemoInstall

hash-base

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hash-base - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

index.js

@@ -7,2 +7,3 @@ 'use strict'

Transform.call(this)
this.initialised_ = true
}

@@ -25,2 +26,5 @@

HashBase.prototype.digest = function (encoding) {
if (!this.initialised_) throw new Error('Not initialized')
this.initialised_ = false
var digest = this._digest()

@@ -27,0 +31,0 @@ if (encoding === undefined) encoding = HashBase.DEFAULT_ENCODING

2

package.json
{
"name": "hash-base",
"version": "1.0.0",
"version": "1.0.1",
"description": "abstract base class for hash-streams",

@@ -5,0 +5,0 @@ "keywords": [

@@ -9,3 +9,3 @@ # hash-base

Abstract base class to inherit from if you want to create streams implementing the same API as node crypto streams.
Abstract base class to inherit from if you want to create streams implementing the same API as node crypto [Hash][1] (for [Cipher][2] / [Decipher][3] check [crypto-browserify/cipher-base][4]).

@@ -21,1 +21,6 @@ Requires you to implement 2 methods:

MIT
[1]: https://nodejs.org/api/crypto.html#crypto_class_hash
[2]: https://nodejs.org/api/crypto.html#crypto_class_cipher
[3]: https://nodejs.org/api/crypto.html#crypto_class_decipher
[4]: https://github.com/crypto-browserify/cipher-base
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