cipher-base

WebJar for cipher-base

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

cipher-base
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

cipher-base
WebJar for cipher-base
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/crypto-browserify/cipher-base

Download cipher-base

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/cipher-base/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>cipher-base</artifactId>
    <version>1.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/cipher-base/
implementation 'org.webjars.npm:cipher-base:1.0.4'
// https://jarcasting.com/artifacts/org.webjars.npm/cipher-base/
implementation ("org.webjars.npm:cipher-base:1.0.4")
'org.webjars.npm:cipher-base:jar:1.0.4'
<dependency org="org.webjars.npm" name="cipher-base" rev="1.0.4">
  <artifact name="cipher-base" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='cipher-base', version='1.0.4')
)
libraryDependencies += "org.webjars.npm" % "cipher-base" % "1.0.4"
[org.webjars.npm/cipher-base "1.0.4"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : inherits jar [2.0.1,3)
org.webjars.npm : safe-buffer jar [5.0.1,6)

Project Modules

There are no modules declared in this project.

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.

org.webjars.npm

Versions

Version
1.0.4
1.0.2