Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

keccakjs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keccakjs

Keccak hash (SHA3) in Node.js and in the browser. Fast & simple.

  • 0.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Keywords

FAQs

Package last updated on 18 Dec 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc