1.0.6 • Published 2 years ago

keccak256 v1.0.6

Weekly downloads
20,138
License
MIT
Repository
github
Last release
2 years ago

keccak256

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

License Build Status

js-standard-style

Install

npm install keccak256

CDN

Available on jsDelivr CDN:

<script src="https://cdn.jsdelivr.net/npm/keccak256@latest/keccak256.js"></script>

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

@jdutchak/argosidcoingateway-address-util@billyjacoby/injective-derivative-ordersprops-sdk@inv3rse/react-sdkfeirmjs@everything-registry/sub-chunk-2009@d-protocol/d-libnftlsproofchain-libraryquasiiustoquiamolestias@rootfor/lightsaber-js@routerprotocol/router-chain-sdk-ts@routerprotocol/sdk-tssimple-tron-hd-wallet@obt/app@obt/fundraising@obt/fundraising-template@obt/os@orderly.network/orderly-sdk@rhapsodylabs/whitelist-merklersenswapjsrent-market@openzeppelin/defender-as-code@openzeppelin/defender-serverless@polyjuice-provider/base@polyjuice-provider/core@polyjuice-provider/godwoken@statesauce/merkle-payments@pendle/sdk@playmint/eth-carbon@solventprotocol/bouncer-core@solventprotocol/solvent-core@solventprotocol/strikr-core@silencelaboratories/silent-shard-snap@silencelaboratories/silent-shard-snap-staging@skip-router/corerchain-toolkit@nailit/ap-id@nation3/agreements@nekoproject/networks@nexm-io/cryst-cli@minespider/core-sdk@moibitjs/matic@minteeble/smart-contracts@mirror-protocol/mirror-airdrop@mirrorworld/crosschainnftcheckoutsdk@mirrorworld/sui.rageeffect@mirrorworld/sui.townstory@mpetrunic/bls-js@mpaucot/react-sdk@meemproject/meem-contracts@metis.io/middleware-client@metaphor-xyz/ens-claimref-orderly-testref-orderly-trading-view-test@nulink_network/nulink-sdkrationeanimirecheck-clientjs-library@nftx/utilssolvent-coresompop-bundlr-networkshawnlu96-injective-sdk-ts@retric/test-provider@satellite-earth/utils@shraddhabhuju/zebec_bridge_sdk@shynnhuy/dmtp-sdk-react@shunkakinoki/merkletreecli@shunkakinoki/nftmetadatacli@thomasralee/sdk-ts@yield-protocol/utils-v2@tns-money/tns.js@yeez/meta-encryptor@yeez-tech/meta-encryptor@wormhole-foundation/wormchain-sdk@yushaku/community-sdk@yushaku/sdk-v1-stateless@yushaku/v1-sdkrerumaccusantium@poiug07vsys/test-js-vsys@poprank/rankings@poro-wallet/core@peersyst/xrpl-evm-sidechain-clisdk-1111sdk-1111111sdk-22@pwoosam/hashgraph-name-resolution-sdkstack-packertellor-js@subasshrestha/zebec-wormhole-sdktest-contracts-sovryn@terranameservice/tns.js@tensor-hq/tensorswap-sdk@tensor-oss/tensorswap-sdk@spec.dev/coresurviving-the-bear@soundxyz/sdk-private@soundxyz/sdk-viem@soundxyz/tiered-sdk-viem
1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

4 years ago

1.0.0

6 years ago

0.0.1

6 years ago