🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

cipher-base

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cipher-base

abstract base class for crypto-streams

latest
Source
npmnpm
Version
1.0.7
Version published
Weekly downloads
12M
10.85%
Maintainers
3
Weekly downloads
 
Created
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

cipher

FAQs

Package last updated on 25 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts