simple-sha1

WebJar for simple-sha1

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

simple-sha1
Last Version

Last Version

2.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

simple-sha1
WebJar for simple-sha1
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/michaelrhodes/simple-sha1

Download simple-sha1

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : rusha jar [0.8.1,0.9)

Project Modules

There are no modules declared in this project.

simple-sha1

simple-sha1 wraps three fast SHA1 implementations, and exposes a simple api for generating hashes in node (crypto) and the browser (WebCryptoAPI || Rusha).

Build status

Sauce Test Status

install

$ npm install simple-sha1

example

var sha1 = require('simple-sha1')

// Because the WebCryptoAPI uses Promises (shudder),
// you have to pass a callback if you want to take
// advantage of its mad-sick performance.

sha1('hey there', function (hash) {
  console.log(hash)
  > 6b1c01703b68cf9b35ab049385900b5c428651b6
})

// However, if you don’t mind always using Rusha in
// the browser, you can just call sha1.sync and be
// done with it.

console.log(sha1.sync('hey there'))
> 6b1c01703b68cf9b35ab049385900b5c428651b6

license

MIT

Versions

Version
2.1.2
2.1.1