{"id":13484395,"url":"https://github.com/wolandr/pretty-hex","last_synced_at":"2026-04-05T01:33:59.566Z","repository":{"id":30262824,"uuid":"124428163","full_name":"wolandr/pretty-hex","owner":"wolandr","description":"A Rust library providing pretty hex dump.","archived":false,"fork":false,"pushed_at":"2026-03-15T08:27:47.000Z","size":44,"stargazers_count":62,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-03-15T21:20:41.138Z","etag":null,"topics":["hexdump","rust","zero-dependency"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/wolandr.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-03-08T17:53:33.000Z","updated_at":"2026-03-15T08:23:05.000Z","dependencies_parsed_at":"2024-01-13T19:18:14.377Z","dependency_job_id":"35686f7c-6c99-4f48-8615-b3fd0f4bb836","html_url":"https://github.com/wolandr/pretty-hex","commit_stats":{"total_commits":15,"total_committers":8,"mean_commits":1.875,"dds":0.5333333333333333,"last_synced_commit":"9ef5b547b88b149ff287a096e579f312a1fb3b8e"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/wolandr/pretty-hex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolandr%2Fpretty-hex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolandr%2Fpretty-hex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolandr%2Fpretty-hex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolandr%2Fpretty-hex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wolandr","download_url":"https://codeload.github.com/wolandr/pretty-hex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolandr%2Fpretty-hex/sbom","scorecard":{"id":1244890,"data":{"date":"2026-03-09","repo":{"name":"github.com/wolandr/pretty-hex","commit":"70b4d38b1f8a6f12a8794ffbff85274def3c50dd"},"scorecard":{"version":"v5.4.1-0.20260302234127-4dbf14294ff1","commit":"4dbf14294ff1c660e93a2c6b70159f8f9b7e1051"},"score":3.3,"checks":[{"name":"Code-Review","score":5,"reason":"Found 9/16 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/4dbf14294ff1c660e93a2c6b70159f8f9b7e1051/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/4dbf14294ff1c660e93a2c6b70159f8f9b7e1051/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/4dbf14294ff1c660e93a2c6b70159f8f9b7e1051/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/wolandr/pretty-hex/rust.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/4dbf14294ff1c660e93a2c6b70159f8f9b7e1051/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/4dbf14294ff1c660e93a2c6b70159f8f9b7e1051/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/rust.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/4dbf14294ff1c660e93a2c6b70159f8f9b7e1051/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/4dbf14294ff1c660e93a2c6b70159f8f9b7e1051/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/4dbf14294ff1c660e93a2c6b70159f8f9b7e1051/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/4dbf14294ff1c660e93a2c6b70159f8f9b7e1051/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/4dbf14294ff1c660e93a2c6b70159f8f9b7e1051/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/4dbf14294ff1c660e93a2c6b70159f8f9b7e1051/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/4dbf14294ff1c660e93a2c6b70159f8f9b7e1051/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/4dbf14294ff1c660e93a2c6b70159f8f9b7e1051/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 23 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/4dbf14294ff1c660e93a2c6b70159f8f9b7e1051/docs/checks.md#sast"}}]},"last_synced_at":"2026-03-15T21:20:57.620Z","repository_id":30262824,"created_at":"2026-03-15T21:20:57.620Z","updated_at":"2026-03-15T21:20:57.620Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31421869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T00:25:07.052Z","status":"ssl_error","status_checked_at":"2026-04-05T00:25:05.923Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["hexdump","rust","zero-dependency"],"created_at":"2024-07-31T17:01:23.605Z","updated_at":"2026-04-05T01:33:59.517Z","avatar_url":"https://github.com/wolandr.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# pretty-hex\n[![crates.io](https://img.shields.io/crates/v/pretty-hex.svg)](https://crates.io/crates/pretty-hex) \n[![docs.rs](https://docs.rs/pretty-hex/badge.svg)](https://docs.rs/pretty-hex)\n\nA Rust library providing pretty hex dump.\n\nA `simple_hex()` way renders one-line hex dump, a `pretty_hex()` way renders \ncolumned multi-line hex dump with addressing and ASCII representation.\nA `config_hex()` way renders hex dump in specified format.\n\n## Example of `simple_hex()`\n\n```rust\nuse pretty_hex::*;\n\nlet v = vec![222, 173, 190, 239, 202, 254, 32, 24];\nassert_eq!(simple_hex(\u0026v), format!(\"{}\", v.hex_dump()));\n\nprintln!(\"{}\", v.hex_dump());\n```\nOutput: \n\n```text\nde ad be ef  ca fe 20 18\n```\n\n## Example of `pretty_hex()`\n\n```rust\nuse pretty_hex::*;\n\nlet v: \u0026[u8] = \u0026random::\u003c[u8;30]\u003e();\nassert_eq!(pretty_hex(\u0026v), format!(\"{:?}\", v.hex_dump()));\n\nprintln!(\"{:?}\", v.hex_dump());\n```\n\nOutput: \n\n```text\nLength: 30 (0x1e) bytes\n0000:   6b 4e 1a c3  af 03 d2 1e  7e 73 ba c8  bd 84 0f 83   kN......~s......\n0010:   89 d5 cf 90  23 67 4b 48  db b1 bc 35  bf ee         ....#gKH...5..\n```\n\n## Example of `config_hex()`\n```rust\nuse pretty_hex::*;\n\nlet cfg = HexConfig {title: false, width: 8, group: 0, ..HexConfig::default() };\n\nlet v = \u0026include_bytes!(\"data\");\nassert_eq!(config_hex(\u0026v, cfg), format!(\"{:?}\", v.hex_conf(cfg)));\n\nprintln!(\"{:?}\", v.hex_conf(cfg));\n```\nOutput:\n\n```text\n0000:   6b 4e 1a c3 af 03 d2 1e   kN......\n0008:   7e 73 ba c8 bd 84 0f 83   ~s......\n0010:   89 d5 cf 90 23 67 4b 48   ....#gKH\n0018:   db b1 bc 35 bf ee         ...5..\n```\n---\n\nInspired by [haskell's pretty-hex](https://hackage.haskell.org/package/pretty-hex-1.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolandr%2Fpretty-hex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwolandr%2Fpretty-hex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolandr%2Fpretty-hex/lists"}