Visualize high-entropy values (keys, signatures, UUIDs, addresses) as SVG diagrams a human can compare at a glance.
Project description
entviz
Entviz is a tool for visualizing high-entropy values (like cryptographic keys, UUIDs, or blockchain addresses) into a grid of colored shapes and text, making it easy for humans to compare them.
Comparing two entvizes
Note: This is interim guidance. A dedicated comparison UI (a React component that aligns two entvizes and highlights differences) is planned; until then, follow the manual procedure below.
entviz is built for comparison, not memorization. To check whether two values are the same:
- Render both the same way. Same point size, same font, same background, shown side by side at the same scale. Differences in scale, zoom, font, or surrounding color can hide or fake a difference.
- Reject on any visible difference. The check is asymmetric: any visible difference in text, color bar, surround pattern, blank positions, ellipse, or quartile marks means the values are different. A match is never proof of identity — it only means no difference was found at the resolution you looked.
- Compare every channel, not just one. A habituated reader who checks only
one landmark (e.g. the color bar) is the easiest to fool. Scan the text, the
color bar (each band carries a letter
w/g/r/b/k), the surround rings, the blank-cell positions, and the overlays.
The fingerprint of marker
For inputs longer than 512 bits, the text channel can't show every character,
so the entviz is labeled fingerprint of <type>(<length>): in bold dark
red. On these entvizes:
- The first 8 and last 8 text cells are real characters from the start and end of your value (use these to recognize and spot-check it).
- The 4 middle cells (neutral background, framed) are a hash readout in hex — they are not characters from your value. Two different long inputs can therefore share many visible cells and still be different; trust the full picture, and remember that the whole input is bound into every color/shape channel through the fingerprint.
Developer Quickstart
Prerequisites
- uv (manages the Python interpreter, virtualenv, and dependencies). uv will fetch a suitable Python (>=3.10) for you.
Installation
-
Clone the repository:
git clone https://github.com/dhh1128/entviz.git cd entviz
-
Create the environment from the lockfile:
uv sync
Running Tests
uv run pytest
To prove the supported Python floor locally (CI runs the full 3.10/3.11/3.12 matrix):
uv run --python 3.10 pytest
Running the CLI
entviz is installed as a console entry point:
uv run entviz "your-entropy-string" --ar 1:1 --fs 12
Regenerating the gallery
uv run python scripts/gallery.py
Regenerating the social preview card
The GitHub "social preview" image (the Open Graph card that unfurls when the repo URL is shared on Slack, X, LinkedIn, etc.) is a reproducible asset. The card embeds an entviz of this repo's own root commit SHA — the tool applied to itself — which is the same entviz shown at the top of the docs.
uv run python scripts/social_card.py
This (re)writes three files into docs/assets/, alongside the other docs
images:
root-commit-entviz.svg— the entviz of the root commit hash (also embedded at the top of docs/index.md);social-card.svg— the composed 1280×640 card (vector source of truth);social-card.png— the PNG you upload (under 1 MB).
The PNG is rendered with cairosvg (a dev dependency) using the DejaVu font
fallback baked into the font stack, so it reproduces without bundling fonts.
Uploading it (one-time, manual): GitHub → repo Settings → General →
Social preview → Edit → upload docs/assets/social-card.png.
Reusing the template across repos: the palette, layout, and typography are
shared family constants; only the KNOBS block at the top of
scripts/social_card.py (repo name, owner, tagline,
language, and the MARK) changes per repo. See the module docstring for details.
Cutting a release
uv run python scripts/release.py --patch -m "what changed"
See scripts/release.py for bump options and the versioning convention.
Project Structure
src/entviz/: Core library.entropy.py: Entropy parsing and normalization.layout.py: Grid layout calculations.colors.py: Color selection and conversion.shapes.py: Edge shape definitions.pipeline.py: End-to-end render pipeline.app.py: CLI entry point (entviz).__init__.py:SPEC_VERSION(algorithm/spec) and__version__(library) — the single source of truth for both.
scripts/: Maintenance tooling (gallery.py,release.py).tests/: Unit tests.docs/: Specification, gallery, and assets.
Documentation
For the full specification of the Entviz algorithm and design goals, see docs/spec.md.
Methodology & AI Collaboration
This repository follows a specific methodology for high-quality software development, especially when collaborating with AI:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file entviz-0.10.0.tar.gz.
File metadata
- Download URL: entviz-0.10.0.tar.gz
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f41907d84c8b3e47dbf1385cb18c56b8c186cfb251983a8036b68a1e5f7f9130
|
|
| MD5 |
943c32d704a82b6c52dd1ff57d18130d
|
|
| BLAKE2b-256 |
c379cc7ee7738fdc6405430b4f51335b59e35c869eaa4c379d5b0d7ebe94169d
|
Provenance
The following attestation bundles were made for entviz-0.10.0.tar.gz:
Publisher:
release.yml on dhh1128/entviz
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
entviz-0.10.0.tar.gz -
Subject digest:
f41907d84c8b3e47dbf1385cb18c56b8c186cfb251983a8036b68a1e5f7f9130 - Sigstore transparency entry: 1874540545
- Sigstore integration time:
-
Permalink:
dhh1128/entviz@75dd794af437d9187a122850f5b63cd164db3593 -
Branch / Tag:
refs/tags/v0.10.0 - Owner: https://github.com/dhh1128
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@75dd794af437d9187a122850f5b63cd164db3593 -
Trigger Event:
push
-
Statement type:
File details
Details for the file entviz-0.10.0-py3-none-any.whl.
File metadata
- Download URL: entviz-0.10.0-py3-none-any.whl
- Upload date:
- Size: 64.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9b45ad76a748ff421ede0ea6b6d47ee908ff13fde92cb89e69f4a1e658796e4
|
|
| MD5 |
7367a07828294ea73ff3e52bc9f37fac
|
|
| BLAKE2b-256 |
ff16e0497deeb117aba1dcd3c6bc34cecb7d3572677d72fe0bc4dec17e9b058e
|
Provenance
The following attestation bundles were made for entviz-0.10.0-py3-none-any.whl:
Publisher:
release.yml on dhh1128/entviz
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
entviz-0.10.0-py3-none-any.whl -
Subject digest:
e9b45ad76a748ff421ede0ea6b6d47ee908ff13fde92cb89e69f4a1e658796e4 - Sigstore transparency entry: 1874540622
- Sigstore integration time:
-
Permalink:
dhh1128/entviz@75dd794af437d9187a122850f5b63cd164db3593 -
Branch / Tag:
refs/tags/v0.10.0 - Owner: https://github.com/dhh1128
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@75dd794af437d9187a122850f5b63cd164db3593 -
Trigger Event:
push
-
Statement type: