A tool for verifying and correcting manually transcribed strings across two devices using binary search.
- Airgapped systems
- Low-privilege systems without email/clipboard access
- Any scenario requiring manual string transcription between devices (e.g., copying login links, tokens, or keys)
- Run
diffseek
on both devices - Enter the reference string on device 1 (input is interactive to avoid shell history)
- Enter your transcription on device 2
- Compare hash-derived values (phrases, colors) displayed on each device
- Binary search narrows down differences:
- Matching hashes indicate error-free regions
- Non-matching hashes indicate potential errors
- The string is reprinted with color coding: orange (possible errors), red (definite errors), white (verified correct)
The tool uses breadth-first search when both strings have matching target lengths (to find all differences efficiently), and depth-first search when lengths differ (to find the first difference quickly).
diffseek
# or
./diffseek.py
# or
python3 diffseek.py
This tool was implemented by Claude Code from a specification I provided. I fixed minor bugs and verified it works for my use case. It is primarily AI-written code.