{"id":15447875,"url":"https://github.com/hazae41/sha1","last_synced_at":"2026-03-16T12:07:25.632Z","repository":{"id":147933626,"uuid":"619249698","full_name":"hazae41/sha1","owner":"hazae41","description":"SHA-1 adapter for WebAssembly and JS implementations","archived":false,"fork":false,"pushed_at":"2024-08-31T15:59:22.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T11:56:12.005Z","etag":null,"topics":["browser","cryptography","hashing","javascript","noble","sha1","typescript","webassembly"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/hazae41.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["hazae41"],"patreon":"hazae41"}},"created_at":"2023-03-26T17:45:31.000Z","updated_at":"2024-08-31T15:59:25.000Z","dependencies_parsed_at":"2024-10-01T20:20:56.849Z","dependency_job_id":"f5453fe3-085b-4565-80c1-c2cec6ee4da3","html_url":"https://github.com/hazae41/sha1","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fsha1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fsha1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fsha1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fsha1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hazae41","download_url":"https://codeload.github.com/hazae41/sha1/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241604979,"owners_count":19989603,"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":["browser","cryptography","hashing","javascript","noble","sha1","typescript","webassembly"],"created_at":"2024-10-01T20:20:44.019Z","updated_at":"2025-12-25T13:32:35.534Z","avatar_url":"https://github.com/hazae41.png","language":"TypeScript","funding_links":["https://github.com/sponsors/hazae41","https://patreon.com/hazae41"],"categories":[],"sub_categories":[],"readme":"# Sha1\n\nSHA-1 adapter for WebAssembly and JS implementations\n\n```bash\nnpm i @hazae41/sha1\n```\n\n[**Node Package 📦**](https://www.npmjs.com/package/@hazae41/sha1)\n\n## Features\n\n### Current features\n- 100% TypeScript and ESM\n- No external dependencies\n\n## Getting started\n\n### WebAssembly\n\n```bash\nnpm i @hazae41/sha1.wasm\n```\n\n```typescript\nimport { Sha1 } from \"@hazae41/sha1\"\nimport { Sha1Wasm } from \"@hazae41/sha1.wasm\"\n\nawait Sha1Wasm.initBundled()\n\nSha1.set(Sha1.fromWasm(Sha1Wasm))\n```\n\n### Noble (JavaScript)\n\n```bash\nnpm i @noble/hashes\n```\n\n```typescript\nimport { Sha1 } from \"@hazae41/sha1\"\nimport Sha1Noble from \"@noble/hashes/sha1\"\n\nSha1.set(Sha1.fromNoble(Noble))\n```\n\n## Usage\n\n### Direct\n\n```tsx\nusing hashed: Copiable = Sha1.get().getOrThrow().hashOrThrow(new Uint8Array([1,2,3,4,5]))\nconst hashed2: Uint8Array = hashed.bytes.slice()\n```\n\n### Incremental\n\n```tsx\nusing hasher: Sha1.Hasher = Sha1.get().getOrThrow().Hasher.createOrThrow()\nhasher.updateOrThrow(new Uint8Array([1,2,3,4,5]))\nhasher.updateOrThrow(new Uint8Array([6,7,8,9,10]))\n\nusing hashed: Copiable = hasher.finalizeOrThrow()\nconst hashed2: Uint8Array = hashed.bytes.slice()\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazae41%2Fsha1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhazae41%2Fsha1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazae41%2Fsha1/lists"}