{"id":17717307,"url":"https://github.com/bwesterb/k12sum","last_synced_at":"2025-09-12T04:34:03.363Z","repository":{"id":176688993,"uuid":"649401596","full_name":"bwesterb/k12sum","owner":"bwesterb","description":"Kangaroo12","archived":false,"fork":false,"pushed_at":"2023-06-17T13:24:44.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-05T09:42:41.957Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bwesterb.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-04T18:18:55.000Z","updated_at":"2023-06-17T13:23:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"caf03cb5-95de-4cd5-9797-8f8102aaf033","html_url":"https://github.com/bwesterb/k12sum","commit_stats":null,"previous_names":["bwesterb/k12sum"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bwesterb/k12sum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwesterb%2Fk12sum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwesterb%2Fk12sum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwesterb%2Fk12sum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwesterb%2Fk12sum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bwesterb","download_url":"https://codeload.github.com/bwesterb/k12sum/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwesterb%2Fk12sum/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274753619,"owners_count":25342825,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"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":[],"created_at":"2024-10-25T14:19:47.296Z","updated_at":"2025-09-12T04:34:03.336Z","avatar_url":"https://github.com/bwesterb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"k12sum\n======\n\nCompute and checks [Kangaroo12 (draft 10)](\nhttps://datatracker.ietf.org/doc/draft-irtf-cfrg-kangarootwelve/) checksums\nwith a similar interface as `sha256sum`.\n\nInstall\n-------\n\n```\n$ go install github.com/bwesterb/k12sum@latest\n```\n\nCreate checksum\n---------------\n\nTo create checksums, simply pass filenames as arguments.\n\n```\n$ k12sum 342.pdf 770.pdf\ne93b2486ad166a75a2162d7b315b70e200becfe50c948f8f61be7d514df2f683  342.pdf\ne04541f3389df0e6944d0ddef466c97495d769025c400b3527126d83dec515e9  770.pdf\n```\n\nFor stdin use `-`. Without any arguments, `k12sum` will read from stdin.\n\n```\n$ k12sum \u003c 342.pdf\ne93b2486ad166a75a2162d7b315b70e200becfe50c948f8f61be7d514df2f683  -\n```\n\nCheck\n-----\n\nUse `-c` to check.\n\n```\n$ cat K12SUMS\ne93b2486ad166a75a2162d7b315b70e200becfe50c948f8f61be7d514df2f683  342.pdf\ne04541f3389df0e6944d0ddef466c97495d769025c400b3527126d83dec515e9  770.pdf\n$ k12sum -c K12SUMS               \n342.pdf: OK\n770.pdf: OK\n$ echo $?\n0\n```\n\nPerformance\n-----------\n\nAt the moment, on M2 Pro, `k12sum` seems to be bottlenecked either\nby macOS' or Go's I/O:\n\n```\n$ ls -lh bigfile       \n-rw-r--r--  1 bas  staff   9.8G Jun 17 15:00 bigfile\n$ time ./k12sum bigfile\n2c0a4b64f562e436c24899f4fe3bdc2558a4bb5643a4977f3f1e2a9e2c978fd3  bigfile\n./k12sum bigfile  4.64s user 1.22s system 444% cpu 1.316 total\n```\n\nThat's *only* 8GB/s. Should be plenty for most applications.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwesterb%2Fk12sum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbwesterb%2Fk12sum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwesterb%2Fk12sum/lists"}