{"id":20235981,"url":"https://github.com/chingc/hash-brown","last_synced_at":"2025-04-10T19:02:35.491Z","repository":{"id":65065743,"uuid":"1113107","full_name":"chingc/Hash-Brown","owner":"chingc","description":"A convenient interface for hashlib and zlib.","archived":false,"fork":false,"pushed_at":"2022-12-28T22:06:23.000Z","size":219,"stargazers_count":3,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T14:04:09.696Z","etag":null,"topics":["checksum","crc32","digest","hashlib","md5","sha","zlib"],"latest_commit_sha":null,"homepage":"","language":"Python","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/chingc.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}},"created_at":"2010-11-25T21:19:02.000Z","updated_at":"2022-12-28T21:18:56.000Z","dependencies_parsed_at":"2023-01-01T05:00:21.898Z","dependency_job_id":null,"html_url":"https://github.com/chingc/Hash-Brown","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chingc%2FHash-Brown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chingc%2FHash-Brown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chingc%2FHash-Brown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chingc%2FHash-Brown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chingc","download_url":"https://codeload.github.com/chingc/Hash-Brown/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248279196,"owners_count":21077406,"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":["checksum","crc32","digest","hashlib","md5","sha","zlib"],"created_at":"2024-11-14T08:18:35.832Z","updated_at":"2025-04-10T19:02:35.446Z","avatar_url":"https://github.com/chingc.png","language":"Python","readme":"# Hash Brown\n\n[![CircleCI](https://circleci.com/gh/chingc/Hash-Brown.svg?style=shield)](https://circleci.com/gh/chingc/workflows/Hash-Brown) [![codecov](https://codecov.io/gh/chingc/Hash-Brown/branch/master/graph/badge.svg)](https://codecov.io/gh/chingc/Hash-Brown) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE) [![PyPI](https://img.shields.io/pypi/v/hb.svg)](https://pypi.org/project/hb/)\n\nA simple command-line utility for calculating checksums.\n\n## Install\n\n```\npip install hb\n```\n\n## Usage\n\nCalculate the sha1 of a file:\n\n```\n$ hb -a sha1 hello.txt\nsha1 (hello.txt) = 493a253abf93d705d67edeb463134a5c8752fc9d\n```\n\nCheck to see if file matches a given checksum:\n\n```\n$ hb -a md5 hello.txt -g 77060c267470021a97392b815138733e\nmd5 (hello.txt) = 77060c267470021a97392b815138733e OK\n\n$ hb -a md5 hello.txt -g 0123456789abcdef\nmd5 (hello.txt) = 0123456789abcdef BAD\n```\n\nChecksums can be read from a file:\n\n```\n$ hb -c checksums.txt\nsha512 (hello.txt) = 493a253abf93d705d67edeb463134a5c8752fc9d OK\nsha512 (world.txt) = 683e4ee04e75e71a6dca42807001f00be1fcb2a3 OK\nsha512 (image.jpg) = f3a53e6c2743645f08faedadd7a2c57cbc38632f OK\nsha512 (video.mp4) = 03ba9191fc4cd74f218df58542643fbc07dca532 OK\n```\n\nHash Brown outputs its results in BSD style.  The checksum files are also BSD style.\n\nAll files are read in binary mode.\n\nGlobbing and recursive globbing are supported via `*` and `**` respectively.\n\nDotfiles are not included when globbing and need to be specified explicitly.\n\n## Options\n\n```\n-a, --algorithm [blake2b|blake2s|md5|sha1|sha224|sha256|sha384|sha512|adler32|crc32]\n-c, --check                     Read checksums from a file.\n-g, --given TEXT                See if the given checksum `TEXT` matches the\n                                computed checksum. (use with -a)\n-p, --parallel                  Process files in parallel.\n-q, --quiet                     Hide results that are OK. (use with -c)\n-t, --timer                     Display elapsed time in seconds.\n--version                       Show the version and exit.\n-h, --help                      Show this message and exit.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchingc%2Fhash-brown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchingc%2Fhash-brown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchingc%2Fhash-brown/lists"}