{"id":22911987,"url":"https://github.com/opencoff/go-hash","last_synced_at":"2025-04-01T10:47:44.534Z","repository":{"id":170161655,"uuid":"627111162","full_name":"opencoff/go-hash","owner":"opencoff","description":"Cryptographic hash calculation \u0026 verification for files/dirs","archived":false,"fork":false,"pushed_at":"2024-07-26T16:51:17.000Z","size":71,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T06:15:12.911Z","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":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opencoff.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-04-12T20:04:17.000Z","updated_at":"2024-07-26T16:51:19.000Z","dependencies_parsed_at":"2024-02-29T02:26:47.510Z","dependency_job_id":"15849590-9968-422e-b575-aaf8bce19c86","html_url":"https://github.com/opencoff/go-hash","commit_stats":null,"previous_names":["opencoff/go-hash"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fgo-hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fgo-hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fgo-hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fgo-hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opencoff","download_url":"https://codeload.github.com/opencoff/go-hash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246628418,"owners_count":20808106,"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-12-14T04:19:29.118Z","updated_at":"2025-04-01T10:47:44.505Z","avatar_url":"https://github.com/opencoff.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README for go-hash\n\n## What is this?\nPure go tool for calculating and verifying hashes of files \u0026 dirs.\n\nIt exploits concurrency where possible and uses mmap(2) for\nhashing/verifying files.\n\nThe hash output can be saved in a file for future verification.\n\n\n## How do I build it?\nYou need a modern go toolchain (go 1.17+):\n\n\n    git clone https://github.com/opencoff/go-hash\n    cd go-hash\n    make\n\nThe binary will be in `./bin/$HOSTOS-$ARCH/ghash`.\nwhere `$HOSTOS` is the host OS where you are building (e.g., openbsd)\nand `$ARCH` is the CPU architecture (e.g., amd64).\n\n## How do I use it?\nUsage:\n\n\tghash [options] file|dir [file|dir ..]\n\n\tOptions:\n\t  -h, --help            Show help and exit\n\t  -V, --version         Show version info and exit\n\t  -r, --recurse\t        Recursively traverse directories\n\t  -x, --one-filesystem  Don't cross file system boundaries\n\t  -L, --follow-symlinks Follow symbolic links\n\t  -H, --hash=H\t\tUse hash algorithm 'H' [sha256]\n\t  --list-hashes\t\tList supported hash algorithms\n\t  -v, --verify-from=F   Verify the hashes in file 'F' [stdin]\n\t  -o, --output=O        Write output hashes to file 'O' [stdout]\n\n### Hashing individual files\n\n    ghash file1 file2 file3\n\n### Hashing recursively multiple files and dirs\n\n    ghash -r dir1 dir2 file3 file4\n\n### Verifying previously generated hashes\n\n    # first generate and save the hashes\n    ghash -L -x -H blake3 -o /tmp/etc.ghash -r /etc\n\n    # now verify the saved hashes in /tmp/etc.ghash\n    ghash -v /tmp/etc.ghash\n\n## Licensing Terms\nThe tool and code is licensed under the terms of the\nGNU Public License v2.0 (strictly v2.0). If you need a commercial\nlicense or a different license, please get in touch with me.\n\nSee the file ``LICENSE.md`` for the full terms of the license.\n\n## Author\nSudhi Herle \u003csw@herle.net\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencoff%2Fgo-hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopencoff%2Fgo-hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencoff%2Fgo-hash/lists"}