{"id":18579407,"url":"https://github.com/msm-code/hex","last_synced_at":"2025-05-16T02:34:54.541Z","repository":{"id":82343422,"uuid":"64537824","full_name":"msm-code/Hex","owner":"msm-code","description":"Swiss army knife for hex manipulation","archived":false,"fork":false,"pushed_at":"2020-09-08T19:44:10.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T15:52:12.325Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/msm-code.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":"2016-07-30T09:58:48.000Z","updated_at":"2022-02-09T14:44:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"875e6720-5b0a-489d-bb7b-e1da9e31d5de","html_url":"https://github.com/msm-code/Hex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msm-code%2FHex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msm-code%2FHex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msm-code%2FHex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msm-code%2FHex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msm-code","download_url":"https://codeload.github.com/msm-code/Hex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254456113,"owners_count":22074104,"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-11-06T23:40:43.396Z","updated_at":"2025-05-16T02:34:54.482Z","avatar_url":"https://github.com/msm-code.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hex\n\n    Sane[ish] hex utility (aka swiss army knife for hexadecimal operations).\n\n## Usage:\n\n```\n$ hex --help\nusage: hex [-h] [--dump] [--dump-pretty] [--reverse] [--colorize]\n           [--colorize-dword] [--find FIND] [--find-all FIND_ALL] [--sanitize]\n           [--quiet]\n           [file]\n\npositional arguments:\n  file\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --dump, -d\n  --dump-pretty, -D\n  --reverse, -r\n  --colorize, -c\n  --colorize-dword\n  --find FIND, -f FIND\n  --find-all FIND_ALL, -F FIND_ALL\n  --sanitize, -s\n  --quiet, -q\n```\n\nWhen `[file]` is not supplied, use stdin instead\n\n```\n/home/msm/Projects/Hex$ head -c 50 /dev/urandom | hex\n6effcd4c19492122ebcb337712bae09f11ff48301858c6872963849ebaeee4944493de07f710bc3170bc911e8a2cdb79bedb\n\n/home/msm/Projects/Hex$ head -c 60 /dev/urandom | hex -D\n00000000 d6cd31278198ae321d12af80aaa4e198 ..1'...2........\n00000010 45bbc95ae042c0d7b47dd86999b55022 E..Z.B...}.i..P\"\n00000020 60b0ad9b34ff3df584a750bb294e0d52 `...4.=...P.)N.R\n00000030 104788397337ba70c01fd46d         .G.9s7.p...m\n\n/home/msm/Projects/Hex$ head -c 60 /dev/urandom | hex -D | hex -c\n00000000 d0cb355edbf7bf7905d12764add3a092 ..5^...y..'d....\n00000010 35954abaa15ce9175d5c11dc72baf98a 5.J..\\..]\\..r...\n00000020 6e714b1204fb784c8f1ffbe60c0743da nqK...xL......C.\n00000030 3b502131b6c9eb232b80d522         ;P!1...#+..\"\n\n/home/msm/Projects/Hex$ echo 692067756573732074686174277320616c6c | hex -r\ni guess that's all\n```\n\n## Why?\n\nFor the most common use case, it's easier to type `hex` than `xxd -ps`, I prefer `hex -s` to `cat -v`, like colors in `hex -c`, and `hex -f` is almost like a binary grep. Overall, it has all the binary features that I need, and when it doesn't I can always add them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsm-code%2Fhex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsm-code%2Fhex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsm-code%2Fhex/lists"}