Protect your apps from supply chain attacksInstall
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
_update takes a
buffer and should return a buffer,
_final takes no arguments and should return
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.
abstract base class for crypto-streams
The npm package cipher-base receives a total of 6,914,696 weekly downloads. As such, cipher-base popularity was classified as popular.
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.
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.