keccakjs
Keccak hash (SHA3) in Node.js and in the browser. Fast & simple.
Last updated 7 years ago by axic .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install keccakjs 
SYNC missed versions from official npm registry.

Keccak.js

The only Keccak hash (aka SHA3 before standardisation) library you need in Javascript. Ever. Pinky promise!

It is a meta package and lets you to use node-sha3 or js-sha3 with the same interface on your choice of deployment. It uses browserify-sha3 to do the mapping for you.

There's no speed loss, it is as thin as it can get (but there is some twiddling in package.json to select the right package for your environment):

module.exports = require('sha3').SHA3Hash

Example usage:

const keccak = require('keccakjs')

var hash = new keccak() // uses 512 bits by default
hash.update('hello')
hash.update(Buffer.from('42004200', 'hex'))
hash.digest() // binary output
hash.digest('hex') // hex output

NOTE: This library supports the Keccak padding only - and not the final SHA3 padding.

Current Tags

  • 0.2.3                                ...           latest (7 years ago)

5 Versions

  • 0.2.3                                ...           7 years ago
  • 0.2.2                                ...           7 years ago
  • 0.2.1                                ...           10 years ago
  • 0.2.0                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (2)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |