Huge news!Announcing our $20M Series A led by Andreessen Horowitz.Learn more
Socket
Socket
Log inDemoInstall

cipher-base

Package Overview
Dependencies
2
Maintainers
1
Versions
5
Issues
File Explorer

Advanced tools

Install Socket

Protect your apps from supply chain attacks

Install

cipher-base

abstract base class for crypto-streams

    1.0.4latest
    GitHub
    npm

Version published
Maintainers
1
Weekly downloads
8,637,209
decreased by-8.77%

Weekly downloads

Readme

Source

cipher-base

Build Status

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. _update 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

Last updated on 07 Jul 2017

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
SocketSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc