Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

cipher-base

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Issues
File Explorer

Advanced tools

cipher-base

abstract base class for crypto-streams

    1.0.0

Version published
Maintainers
1
Weekly downloads
12,362,942
increased by10.46%

Weekly downloads

Readme

Source

cipher-base

Abstract base class to inherit from if you want to create streams implementing the same api as node crypto streams.

Requires you to implement 2 methods _final and _update. _final takes a buffer and should return a buffer, _final takes no arguments and should return a buffer.

The constructor takes one argument and that is a string which if present switches it into hash mode, i.e. the object you get from crypto.createHash or crypto.createSign, this switches the name of the final method to be the string you passed instead of final and returns this from update.

Keywords

FAQs

What is cipher-base?

abstract base class for crypto-streams

Is cipher-base popular?

The npm package cipher-base receives a total of 10,013,659 weekly downloads. As such, cipher-base popularity was classified as popular.

Is cipher-base well maintained?

We found that cipher-base demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 26 Sep 2015

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc