Skip to main content

diffseek - A tool for comparing long strings across devices via binary search

Project description

diffseek

A tool for verifying and correcting manually transcribed strings across two devices using binary search.

Use Cases

  • 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)

How It Works

  1. Run diffseek on both devices
  2. Enter the reference string on device 1 (input is interactive to avoid shell history)
  3. Enter your transcription on device 2
  4. Compare hash-derived values (phrases, colors) displayed on each device
  5. 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).

Usage

diffseek
# or
./diffseek.py
# or
python3 diffseek.py

Disclosure

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

diffseek-0.1.2.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

diffseek-0.1.2-py2.py3-none-any.whl (5.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file diffseek-0.1.2.tar.gz.

File metadata

  • Download URL: diffseek-0.1.2.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for diffseek-0.1.2.tar.gz
Algorithm Hash digest
SHA256 684901958b47defa14cb8bc816dd61cf8457e2284a62e29d8195ca7391b439f5
MD5 9f533d3c83d1b9c900194cbfec64e058
BLAKE2b-256 2e26ca75fb0f34710f69034081c0d47f5e466dcc1acdb783d37e6283560ae1d4

See more details on using hashes here.

File details

Details for the file diffseek-0.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: diffseek-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for diffseek-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d2c7bb4094fd530aacd625f09900dc80aba5e80de12f91f3d77029a7680b9fb4
MD5 afdeb2819f6992af00900e5ffe721b4d
BLAKE2b-256 14e0c403d88bf5f3036cff0a9467374f2cd5188872def77d83755fd6dda324be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page