{"id":20617629,"url":"https://github.com/pigri/cf-workers-hash","last_synced_at":"2025-04-15T11:30:59.307Z","repository":{"id":227870726,"uuid":"772515349","full_name":"pigri/cf-workers-hash","owner":"pigri","description":"Hash function for Cloudflare Workers","archived":false,"fork":false,"pushed_at":"2025-04-12T11:54:35.000Z","size":798,"stargazers_count":13,"open_issues_count":9,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T12:44:33.359Z","etag":null,"topics":["cf","cloudflare","cloudflare-workers","crypto","hash","hasher"],"latest_commit_sha":null,"homepage":"https://github.com/pigri/cf-workers-hash","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pigri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-15T10:46:33.000Z","updated_at":"2025-03-26T09:53:05.000Z","dependencies_parsed_at":"2024-11-06T15:23:47.173Z","dependency_job_id":"a2f959a2-e35b-4360-8aed-4d51e4d33fff","html_url":"https://github.com/pigri/cf-workers-hash","commit_stats":null,"previous_names":["pigri/cf-workers-hash"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pigri%2Fcf-workers-hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pigri%2Fcf-workers-hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pigri%2Fcf-workers-hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pigri%2Fcf-workers-hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pigri","download_url":"https://codeload.github.com/pigri/cf-workers-hash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571654,"owners_count":21126520,"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":["cf","cloudflare","cloudflare-workers","crypto","hash","hasher"],"created_at":"2024-11-16T12:05:04.974Z","updated_at":"2025-04-15T11:30:59.278Z","avatar_url":"https://github.com/pigri.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hash functions for Cloudflare Workers\n\n[![NPM](https://nodei.co/npm/cf-workers-hash.png?stars\u0026downloads)](https://nodei.co/npm/cf-workers-hash/)\n\n![GitHub CI](https://github.com/pigri/cf-workers-hash/actions/workflows/test.yaml/badge.svg)\n\n![NPM Publish](https://github.com/pigri/cf-workers-hash/actions/workflows/publish.yaml/badge.svg)\n\n### What is this?\nThis is a simple hash function library for Cloudflare Workers. It supports the following hash functions:\n- SHA-1 [WEBCRYPTO SUPPORTED](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/)\n- SHA-256 [WEBCRYPTO SUPPORTED](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/)\n- SHA-384 [WEBCRYPTO SUPPORTED](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/)\n- SHA-512 [WEBCRYPTO SUPPORTED](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/)\n- MD5 [WEBCRYPTO SUPPORTED](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/)\n- BASE64 / BASE64-DECODE\n- XXHASH32\n- XXHASH64\n- BCRYPT / BCRYPT-COMPARE\n- WHIRLPOOL / WHIRLPOOL-DECODE\n- SHA3-224\n- SHA3-256\n- SHA3-384\n- SHA3-512\n- KECCAK224\n- KECCAK256\n- KECCAK384\n- KECCAK512\n- MD6\n- CRC32\n- CRC32C\n\n### How to install?\n```\nnpm install cf-workers-hash\n```\n\n### How to use?\n\nCheck the `example` directory.\n\n```\nimport { sha1, sha256, sha384, sha512, base64, base64Decode, md5, xxhash64, xxhash32, bcrypt, bcryptCompare, whirlpool, whirlpoolDecode, sha3_512, sha3_224, sha3_256, sha3_384, keccak512, keccak384, keccak256, keccak224, md6, crc32, crc32c } from 'cf-workers-hash';\nawait sha1('test');\n```\n\n### How to test in local?\n```\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpigri%2Fcf-workers-hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpigri%2Fcf-workers-hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpigri%2Fcf-workers-hash/lists"}