[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#854508: ITP: node-hash-base -- abstract base class for hash-streams



Package: wnpp
Severity: wishlist
Owner: Shirish Togarla <shirishtogarla533@gmail.com>
X-Debbugs-CC: debian-devel@lists.debian.org

* Package name    : node-hash-base
  Version         : 3.0.3
  Upstream Author : Kirill Fomichev <fanatid@ya.ru> (https://github.com/fanatid)
* URL             : https://github.com/crypto-browserify/hash-base
* License         : Expat
  Programming Lang: _javascript_
  Description     : abstract base class for hash-streams

 Abstract base class to inherit from if you want to create streams
 implementing the same API as node crypto Hash 1. For example
 function MyHash () {
  HashBase.call(64) // in bytes
 }
 inherits(MyHash, HashBase)
 MyHash.prototype._update = function () {
  // hashing one block with buffer this._block
 }
 MyHash.prototype._digest = function () {
  // create padding and produce result
 }

Reply to: