Nougat Predominant Middleware
    Wondering what’s next for npm?Check out our public roadmap! »

    keccak256
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.2 • Public • Published

    keccak256

    A wrapper for the keccak library to compute 256 bit keccak hash in JavaScript.

    License Build Status Coverage Status

    js-standard-style

    Install

    npm install keccak256

    Usage

    • keccak256(data) -> {Buffer}

      • {String | Buffer} data - data string or Buffer

      Returns a Buffer

    Getting Started

    const keccak256 = require('keccak256')
     
    console.log(keccak256('hello').toString('hex')) // "1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"
     
    console.log(keccak256(Buffer.from('hello')).toString('hex')) // "1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"

    Test

    npm test

    License

    MIT

    Install

    npm i keccak256

    DownloadsWeekly Downloads

    18,505

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    9.18 kB

    Total Files

    11

    Last publish

    Collaborators

    • avatar