{"id":20009057,"url":"https://github.com/yngfoxx/web-crypto-hooks","last_synced_at":"2026-06-09T11:31:22.690Z","repository":{"id":164530022,"uuid":"603782802","full_name":"yngfoxx/web-crypto-hooks","owner":"yngfoxx","description":"Web Crypto Hooks","archived":false,"fork":false,"pushed_at":"2024-12-30T08:23:54.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T01:43:17.840Z","etag":null,"topics":["ecdsa","elliptic-curves","hooks","p256","simple","web"],"latest_commit_sha":null,"homepage":"https://cdn.jsdelivr.net/gh/yngfoxx/web-crypto-hooks/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yngfoxx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-02-19T15:07:28.000Z","updated_at":"2024-12-30T08:23:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"94edf814-27b9-4a55-bee8-65f28fab1e29","html_url":"https://github.com/yngfoxx/web-crypto-hooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yngfoxx/web-crypto-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yngfoxx%2Fweb-crypto-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yngfoxx%2Fweb-crypto-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yngfoxx%2Fweb-crypto-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yngfoxx%2Fweb-crypto-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yngfoxx","download_url":"https://codeload.github.com/yngfoxx/web-crypto-hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yngfoxx%2Fweb-crypto-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34105565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ecdsa","elliptic-curves","hooks","p256","simple","web"],"created_at":"2024-11-13T07:14:03.336Z","updated_at":"2026-06-09T11:31:22.673Z","avatar_url":"https://github.com/yngfoxx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# web-crypto-hooks\nWeb Crypto Hooks\n\n## Usage\n\nImport hook into your project\n\n### ECDSA hook example\n```\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/yngfoxx/web-crypto-hooks/subtle/ecdsa.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nconst cert     = await useECDSA()\nconst hash     = cert.hash('test-message-to-hash')\nconst sig      = await cert.sign(hash)\n\n// verify signature sample\nconst isValid  = await cert.verify(hash, sig)\nif (!isValid) {\n    alert('cert or signature is invalid')\n    return;\n}\n\nconst certificate = JSON.stringify({\n    'hsh': cert.buf2hex(hash.buffer),\n    'sig': cert.buf2hex(new Uint8Array(sig).buffer),\n    'pbk': cert.buf2hex(new Uint8Array(pbk).buffer)\n})\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyngfoxx%2Fweb-crypto-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyngfoxx%2Fweb-crypto-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyngfoxx%2Fweb-crypto-hooks/lists"}