haiperdohp-jemaytreeah/tools
malonehunter 2570372ebf v2.2: progressive loading, configurable default loadout, 11 new ciphers
- Progressive db loading: db_lite.json fast first paint -> full db.json swaps in
- 11 new ciphers from Alektryon's fork (AGPLv3): polygonal family (Pentagonal..Decagonal),
  English Qabalah 31, Mars Kamea, Angelic, Bacon Standard/R Standard -> 95 total (80 English)
- Configurable defaultEnabledCiphers + built-in Alphanumeric category + Base preset
- Default match mode -> Same Cipher Match; breakCipher -> Ordinal; base-4-first order
- Desktop keyboard nav for results modal; db cache-busting (databaseVersion ?v=N)
- generate_db_json emits db_lite.json; CHANGELOG/README updated
- db.json + db_lite.json ship as Release assets (gitignored)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-28 12:48:13 -04:00
..
all_ciphers.py v2.1: DB restoration (209k entries), cipher fixes & renames, generator tools 2026-05-24 18:06:43 -04:00
generate_db_json.py v2.2: progressive loading, configurable default loadout, 11 new ciphers 2026-05-28 12:48:13 -04:00
README.md README: point to release db.json download for instant matching; update db counts to 209,667 2026-05-24 18:40:40 -04:00

Tools

Rebuilding the precomputed database (db.json)

The calculator works out of the box in live mode — it loads db.txt (one phrase per line) and computes cipher values on the fly. For instant matching (~100ms vs 2–5s per query), it can instead load a precomputed db.json containing all 69 cipher values per entry.

db.json is a build artifact derived from db.txt + calc/ciphers.js. It is not committed to the repo (it's large). Two ways to get it:

  1. Download the prebuilt db.json from the latest GitHub Release. Place it next to index.html.

  2. Regenerate it yourself:

    python3 tools/generate_db_json.py db.txt db.json
    

    Requires Python 3. Reads cipher definitions from calc/ciphers.js, scores every entry in db.txt against all 69 English-applicable ciphers, and writes db.json.

The calculator auto-detects db.json (see databaseMode in config.js, default "auto"): it tries db.json first and falls back to db.txt if absent.

Files

  • generate_db_json.py — builds db.json from a flat db.txt.
  • all_ciphers.py — parses calc/ciphers.js and scores text against all English ciphers (used by the generator). Handles case-sensitive ciphers and strips [...] display annotations before scoring, matching the live engine.