{"id":20850575,"url":"https://github.com/multiformats/js-sha3","last_synced_at":"2025-05-12T04:31:29.085Z","repository":{"id":38317521,"uuid":"271151732","full_name":"multiformats/js-sha3","owner":"multiformats","description":"Multiformats hash functions for SHA3 ","archived":false,"fork":false,"pushed_at":"2025-04-28T16:01:13.000Z","size":70,"stargazers_count":4,"open_issues_count":5,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-28T17:22:09.035Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/multiformats.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-10T01:56:09.000Z","updated_at":"2025-04-28T16:01:16.000Z","dependencies_parsed_at":"2024-01-02T01:12:41.383Z","dependency_job_id":"e7b21fa7-48c2-452b-9866-97ecc1d7d36a","html_url":"https://github.com/multiformats/js-sha3","commit_stats":{"total_commits":75,"total_committers":4,"mean_commits":18.75,"dds":0.6133333333333333,"last_synced_commit":"113d8ac3324fe5f87b763b16cad990377dc739e4"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multiformats%2Fjs-sha3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multiformats%2Fjs-sha3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multiformats%2Fjs-sha3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multiformats%2Fjs-sha3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/multiformats","download_url":"https://codeload.github.com/multiformats/js-sha3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253675270,"owners_count":21945921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T03:10:17.813Z","updated_at":"2025-05-12T04:31:28.710Z","avatar_url":"https://github.com/multiformats.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @multiformats/sha3 \u003c!-- omit in toc --\u003e\n\n[![multiformats.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://multiformats.io)\n[![codecov](https://img.shields.io/codecov/c/github/multiformats/js-sha3.svg?style=flat-square)](https://codecov.io/gh/multiformats/js-sha3)\n[![CI](https://img.shields.io/github/actions/workflow/status/multiformats/js-sha3/js-test-and-release.yml?branch=master\\\u0026style=flat-square)](https://github.com/multiformats/js-sha3/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)\n\n\u003e Multiformats hash functions for SHA3\n\n## Table of contents \u003c!-- omit in toc --\u003e\n\n- [Install](#install)\n- [Usage](#usage)\n- [License](#license)\n- [Contribution](#contribution)\n\n## Install\n\n```console\n$ npm i @multiformats/sha3\n```\n\n`MultihashHashers`s are exported from this library, they produce `MultihashDigest`s. Details about these can be found in the [multiformats multihash interface definitions](https://github.com/multiformats/js-multiformats/blob/master/src/hashes/interface.ts).\n\n```js\nimport * as Block from 'multiformats/block'\nimport * as codec from '@ipld/dag-cbor'\nimport { sha3256 as hasher } from '@multiformats/sha3'\n\nasync function run () {\n  const value = { hello: 'world' }\n  const block = await Block.encode({ value, hasher, codec })\n  console.log(block.cid)\n  // -\u003e CID(bafyrmidyqnbqbeh5lmkwavjizfmsz6ezwvjleweh5frwk56akfyugoio2e)\n}\n\nrun().catch(console.error)\n```\n\n## Usage\n\nThe `@multiformats/sha3` package exports `sha3*`, `shake*` and `keccak*` `MultihashHasher`s. The Multicodecs [table](https://github.com/multiformats/multicodec/blob/master/table.csv) defines these multihashes.\n\nThe following `MultihashHasher`s are exported:\n\n- `sha3224` - SHA3-224\n- `sha3256` - SHA3-256\n- `sha3384` - SHA3-384\n- `sha3512` - SHA3-512\n- `shake128` - SHAKE-128 (256 output bits)\n- `shake256` - SHAKE-256 (512 output bits)\n- `keccak224` - KECCAK-224\n- `keccak256` - KECCAK-256\n- `keccak384` - KECCAK-384\n- `keccak512` - KECCAK-512\n\ne.g. he `sha3-384`, multicodec code `0x15`, may be imported as:\n\n```js\nimport { sha3384 } from '@multiformats/sha3'\n```\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / \u003chttp://opensource.org/licenses/MIT\u003e)\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultiformats%2Fjs-sha3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmultiformats%2Fjs-sha3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultiformats%2Fjs-sha3/lists"}