{"id":20367997,"url":"https://github.com/mcaptcha/pow_sha256-polyfill","last_synced_at":"2025-04-12T05:37:03.089Z","repository":{"id":42634547,"uuid":"380778842","full_name":"mCaptcha/pow_sha256-polyfill","owner":"mCaptcha","description":"JavaScript polyfil for https://github.com/mCaptcha/pow_sha256","archived":false,"fork":false,"pushed_at":"2024-03-29T11:27:28.000Z","size":864,"stargazers_count":3,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T15:57:57.332Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mCaptcha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE_APACHE","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},"funding":{"open_collective":null,"liberapay":"mcaptcha","issuehunt":null,"custom":["https://mcaptcha.org/donate"]}},"created_at":"2021-06-27T15:47:53.000Z","updated_at":"2022-08-04T15:20:02.000Z","dependencies_parsed_at":"2023-02-06T17:00:53.113Z","dependency_job_id":"897f6847-a8d9-4468-a02c-4ace49f8c3c4","html_url":"https://github.com/mCaptcha/pow_sha256-polyfill","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"31554ebdb91fab8e8bac1ce42dd3352c159c2d9d"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mCaptcha%2Fpow_sha256-polyfill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mCaptcha%2Fpow_sha256-polyfill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mCaptcha%2Fpow_sha256-polyfill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mCaptcha%2Fpow_sha256-polyfill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mCaptcha","download_url":"https://codeload.github.com/mCaptcha/pow_sha256-polyfill/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525068,"owners_count":21118616,"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-15T00:36:01.265Z","updated_at":"2025-04-12T05:37:03.026Z","avatar_url":"https://github.com/mCaptcha.png","language":"TypeScript","funding_links":["https://liberapay.com/mcaptcha","https://mcaptcha.org/donate"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n  \u003ch1\u003ePoW JavaScript library\u003c/h1\u003e\n\n\u003cstrong\u003eJavaScript library to generate PoW for mCaptcha\u003c/strong\u003e\n\n[![0.1.0](https://img.shields.io/badge/TypeScript_docs-master-2b7489)](https://mcaptcha.github.io/pow_sha256-polyfill/)\n![Build)](\u003chttps://github.com/mCaptcha/pow_sha256-polyfill/workflows/CI%20(Linux)/badge.svg\u003e)\n[![codecov](https://codecov.io/gh/mCaptcha/pow_sha256-polyfill/branch/master/graph/badge.svg)](https://codecov.io/gh/mCaptcha/pow_sha256-polyfill)\n\n\u003c/div\u003e\n\n## Usage\n\nTo generate proof-of-work, per mCaptcha specification:\n\n```typescript\nimport {generate_proof} from \"@mcaptcha/pow_sha256-polyfill\";\n\nlet salt = \"randomsaltvalueprovidedbymcaptcha\";\nlet phrase = \"randomphrasevalueprovidedbymcaptcha\";\nlet difficulty = 50_000;\n\nlet work = await generate_proof(salt, phrase, difficulty);\n```\n\n## Funding\n\n### NLnet\n\n\u003cdiv align=\"center\"\u003e\n\t\u003cimg\n\t\theight=\"150px\"\n\t\talt=\"NLnet NGIZero logo\"\n\t\tsrc=\"./static/third-party/NGIZero-green.hex.svg\"\n\t/\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n2023 development is funded through the [NGI0 Entrust\nFund](https://nlnet.nl/entrust), via [NLnet](https://nlnet.nl/). Please\nsee [here](https://nlnet.nl/project/mCaptcha/) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcaptcha%2Fpow_sha256-polyfill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcaptcha%2Fpow_sha256-polyfill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcaptcha%2Fpow_sha256-polyfill/lists"}