Air-gapped acoustic, steganographic & word-cipher transceiver for Bitcoin, private secret messages, and secret photos. Move signed Bitcoin transactions, PSBTs, Cashu eCash tokens, Lightning invoices, encrypted dead-drop messages, or secret photos across a physical air-gap using sound waves, lossless PNG images (photo-inside-a-photo), or innocent English words—with zero USB sticks, zero Bluetooth, zero NFC, and zero servers.
Live web app (works on phone & desktop): https://random21m.github.io/txmodem/
Offline USB download (single self-contained HTML file): txmodem.html · Verify SHA256SUMS.txt
▶ Watch the full tutorial on YouTube — 10-chapter walkthrough covering Ghost Chat, Cashu Sat Vault, Acoustic MFSK Modem, Stego-PNG Dual-Vault, Word Cipher, 8-Transport Mesh Hub, Saved Archive, and PIN / Duress Wipe. Direct offline copy:
docs/txmodem-tour.mp4
When you sign a Bitcoin transaction on an air-gapped offline device (an old laptop, a Tails live USB, or an offline Sparrow/Bitcoin Core machine), you normally carry the signed raw hex out to an online broadcaster using a USB stick, SD card, or camera/QR.
- Cryptographic PIN Lock + Duress PIN (
🔓 PIN/🔒 LOCK): Optional 4–12 digit Matrix keypad lock with inactivity Auto-Lock (1m / 5m / 15m) that encrypts your entire Saved Archive and Cashu Sat Vault at rest with ChaCha20-HMAC (zero plaintext inlocalStorage). Optional Duress PIN silently wipes all stored data and opens a clean empty session. - Dedicated Saved Archive (
🗄 ARCHIVE) & Burn Timer (🔥 BURN): Save or delete individual messages, secret photos (with full-screen zoom Lightbox), encrypted files, and Bitcoin drops; filter/search; export/import encrypted.txarchbackups; or enable30s / 5m / 1hburn-after-reading timers in Ghost Chat. - Built-In Cashu eCash Holding Vault (
⚡ SAT VAULT): Hold bearer Cashu sats offline as a go-between vault, claim incoming tokens straight from any carrier, split/send exact sats into Ghost Chat / Sound / QR Beam / Stego-PNG, or go online for real NUT-00/03/04/05/07 mint swaps, Lightning deposits, Lightning withdrawals (lnbc...oruser@domain), unspent checks, and ChaCha20-encrypted.txvaultbackups. - 8 Real Transports in One Secret-Agent Console (
📡 MESH HUB):- Offline / Air-Gap: Acoustic MFSK Sound (
.WAV+🔁 BEACON), Silent Animated Optical QR Beam (🎞 QR BEAM), Camera QR Scan (📷 SCAN QR), Stego-PNG Photo-in-Photo, Word Cipher English Stanzas, Web Bluetooth BLE UART (ESP32 / BitChat / Meshtastic BLE), Web Serial / LoRa (USB LoRa / TNC / serial cable), and Web NFC tag dead-drops (Android Chrome). - Online / LAN P2P (strictly opt-in, zero accounts): 🟣 Nostr Global Relay Mesh (pure-JS BIP-340 Schnorr ephemeral keys, hashed
#channeltags, ChaCha20-HMAC E2EE) and 🔗 Serverless WebRTC P2P Direct (high-speed HD photo & file transfer via QR/text Offer-Answer with zero signaling server).
- Offline / Air-Gap: Acoustic MFSK Sound (
- BitChat-Style
💬 GHOST CHATOff-Grid Messenger: Ephemeral handles (ghost-4f9a), IRC#channels(#bitcoin,#general,#dead-drop,/join #room), per-channel ChaCha20-HMAC room keys (/key), live Mic Mesh listening, slash commands (/nick,/clear,/help), and☢ PANIC WIPEinstant memory zeroing. Send and receive private text, secret photos, arbitrary encrypted files (with SHA-256 verification), and Bitcoin/Cashu payloads over live sound,.WAVvoice drops, Stego-PNG drops, or English Word Cipher stanzas! - Sound is a hardware-isolated, strictly one-way air-gap: your offline machine plays a short burst of modem tones out of its speaker (or repeats automatically in
🔁 BEACONmode), and your online phone or laptop hears it through its microphone—malware on the online machine cannot travel backwards through a speaker. - Built-in Camera QR Scanner (
📷 SCAN QR): load signed transactions, PSBTs, Cashu tokens, or Lightning invoices directly from a phone wallet, SeedSigner, or QR screenshot—works on iOS Safari, Android Chrome, Firefox, and desktop viaBarcodeDetector+ bundled offlinejsQR(including animated multi-partpXofYQRs). - Three cypherpunk carriers in one tool: Acoustic MFSK Modem (with Deflate compression + live Mic Level / Clipping meter), Stego-PNG (invisible RGB LSB image carrier), and Word Cipher (256-word innocent English stanza camouflage).
- Plausible Deniability Dual-Vault: pack two completely independent payloads into one indistinguishable ciphertext across any carrier—Passphrase A reveals your real Bitcoin tx / Cashu token; Decoy Passphrase B reveals a believable decoy.
- Own-Node Broadcasting: broadcast directly to
mempool.spaceor point TXMODEM at your own Umbrel / Start9 / local Mempool instance, with clickable explorer links. - 100% local, zero tracking, zero external CDNs: every byte of DSP, Deflate, Reed-Solomon ECC, Bitcoin wire parsing, QR encoding/decoding, and ChaCha20-HMAC runs locally in pure vanilla JavaScript.
Anyone can send or receive in seconds with nothing to install:
- Open https://random21m.github.io/txmodem/ on your phone or laptop.
- (Optional) Add it to your phone's Home Screen—TXMODEM installs an offline Service Worker so it keeps working even in airplane mode.
- Click
TESTNET BTC TX→⚡ SELF-TEST LOOPBACKto watch a real SegWit transaction modulate into noisy PCM audio, demodulate through the Goertzel DSP + Reed-Solomon decoder, pass CRC-32, and dissect live on screen.
Does the receiver need the app?
Yes—to decode the sound tones (or extract a Stego PNG), the receiving device simply opens https://random21m.github.io/txmodem/ in any browser (or opens a local copy oftxmodem.html). Once decoded, TXMODEM outputs standard Bitcoin raw hex, PSBTs, Cashu tokens, QR codes, and 1-click Mempool.space broadcasting, so it works with any Bitcoin wallet or node.
txmodem.html is a single, completely self-contained HTML file (~155 KB) with all CSS, DSP, Bitcoin parsers, QR code generator, and crypto inlined inside it.
- Download
txmodem.html:- Click the amber
⬇ USB OFFLINEbutton in the top-right bar of the live web app, or - Download
txmodem.htmlandSHA256SUMS.txtdirectly from this repo / GitHub Releases.
- Click the amber
- Verify the checksum before copying to USB:
sha256sum -c SHA256SUMS.txt
- Copy
txmodem.htmlonto a USB drive and move it to your offline / air-gapped computer. - Double-click
txmodem.html(or open it in Firefox / Chromium on the offline machine).- Transmit (
▶ TRANSMIT AUDIO),⬇ EXPORT .WAV,⚡ SELF-TEST LOOPBACK,.WAVdrag-and-drop decode, Stego-PNG embed/extract, and ChaCha20 passphrase encryption all work 100% offline directly fromfile://. - (Browser security note: live Microphone RX requires
https://orhttp://127.0.0.1—for an offline machine receiving from another offline machine, either drop a.wavfile or servetxmodem.htmllocally withpython3 -m http.server 8090and openhttp://127.0.0.1:8090/txmodem.html.)
- Transmit (
- On the online receiving device (phone or laptop):
- Open https://random21m.github.io/txmodem/.
- Select the matching network (
MAINNET,TESTNET4, orSIGNET) and RX Listen Profile (default:BALANCED). - Tap
◉ ARM MIC RECEIVERand allow microphone access. The HUD showsLISTENING.
- On the offline signing device (running
txmodem.htmlfrom USB):- Paste your signed raw Bitcoin transaction hex (or PSBT / Cashu token / Lightning invoice) into
TX // ACOUSTIC TRANSMITTER. - Confirm the auto-detected badge (e.g.
RAW BITCOIN TX) and matching profile (BALANCED). - Hold the receiving mic 10–30 cm from the speaker (medium-high volume, no clipping) and click
▶ TRANSMIT AUDIO.
- Paste your signed raw Bitcoin transaction hex (or PSBT / Cashu token / Lightning invoice) into
- Verify & Broadcast:
- Watch the receiver progress through
CARRIER LOCK→SYNCED→HEADER→DECODING→CRC-32 VERIFIED. - Inspect the decoded TXID, outputs, decoded addresses (
bc1q/bc1p/1.../3...), satoshi amounts, and vBytes in the Bitcoin Protocol Dissector. - Click
📡 BROADCAST TO MEMPOOL.SPACE(orCOPYto paste into Sparrow / Bitcoin Core / your own node).
- Watch the receiver progress through
- Paste your Bitcoin payload into TX and click
⬇ EXPORT .WAV. - Send or move the
.wavfile through any channel. - On the receiving device, drag and drop the
.wavontoDROP .WAV AUDIO CLIP HERE—TXMODEM automatically scansBALANCED,FAST, andROBUSTprofiles and verifies the CRC-32 checksum offline.
- Switch the top toggle from
ACOUSTIC MODEMtoSTEGO PNG. - Paste a raw Bitcoin tx, PSBT, or Cashu eCash token (or click
COPY FROM MODEM TX). - (Optional) Enter a passphrase to lock the payload with ChaCha20 + HMAC-SHA256 before hiding.
- Drop any cover photo (PNG/JPG/WebP) or click
⚡ MATRIX COVER ARTto generate a cypherpunk cover image. - Click
⬇ EMBED & SAVE STEGO PNG. - Send the PNG via any lossless channel (file attachment, USB, email—avoid apps that re-encode PNGs to JPEG).
- On the receiving side, drop the PNG into
STEGO RXto extract, verify CRC-32, decrypt if locked, and inspect/claim the Bitcoin payload.
| Profile | Symbol Time | Effective Rate | Best Used For |
|---|---|---|---|
FAST |
36 ms (4 ms guard) |
~20 B/s | .WAV files, quiet desks, close speaker-to-mic |
BALANCED (default) |
52 ms (8 ms guard) |
~14 B/s | Everyday laptop-to-phone acoustic air-gap |
ROBUST |
84 ms (14 ms guard) |
~8.5 B/s | Noisy rooms, reverb, walkie-talkies, phone calls |
Tips for clean live mic reception:
- Keep volume around 65–80% so the laptop speaker does not clip or distort.
- Place the phone mic 10–25 cm from the speaker in a reasonably quiet room.
- If a room has echo or background noise, switch both TX and RX to
ROBUST(which increases symbol duration and Reed-Solomon ECC from 16 to 24 parity bytes per block).
| Component | Details |
|---|---|
| Modulation | Harmonic-free sub-octave Dual-Bank 8×8 MFSK (6 bits/symbol) |
| Carrier Frequencies | Low Bank: 1350–1875 Hz (8 ch) · Sync Pilots: 1950 / 2025 Hz · High Bank: 2100–2625 Hz (8 ch) · 75 Hz spacing (2 × 1350 = 2700 Hz > 2625 Hz -> zero 2nd-harmonic collisions) |
| Forward Error Correction | Pure-JS Reed-Solomon over GF(256) (0x11d) — RS(16,8) protected header + RS(N+16/24, N) data blocks + CRC-32 full-payload verification |
| Compact Wire Packing | Raw Bitcoin tx hex packed to binary (50% faster); Base64 PSBTs packed to binary (25% faster) |
| Encryption (Optional) | Pure-JS PBKDF2-HMAC-SHA256 (15,000 iters) + RFC 8439 ChaCha20 + HMAC-SHA256 Encrypt-then-MAC (works offline on file://) |
| Bitcoin Dissector | Legacy & SegWit wire parser, real TXID & WTXID, P2WPKH / P2WSH (Bech32), P2TR Taproot (Bech32m), P2PKH / P2SH (Base58Check), OP_RETURN, PSBT, Cashu V3 (cashuA) & V4 (cashuB CBOR), BOLT11 Lightning invoices |
| Stego Carrier | Lossless RGB LSB embedding (TXSG header + length + CRC-32, max channel delta ≤ 1, opaque alpha preserved) |
git clone https://github.com/Random21m/txmodem.git
cd txmodem
# Rebuild standalone txmodem.html, index.html, and SHA256SUMS.txt
python3 build.py
# Run full automated verification suite (BIP-173/350, SegWit wire, RS ECC, noisy 44.1/48kHz MFSK, WAV, ChaCha20, Stego, QR)
node tests/test_modem.mjs
# Run locally with live Microphone RX enabled
python3 -m http.server 8090
# Open http://127.0.0.1:8090/- Zero backend, zero analytics, zero CDNs. Inspect the entire codebase in
src/or audit the single-filetxmodem.htmldirectly. - Never paste mainnet seed phrases or private keys into any browser tool—TXMODEM is built for signed raw transactions, PSBTs, Cashu bearer tokens, and public invoices.
- Always double-check decoded output addresses and satoshi amounts in the Bitcoin Protocol Dissector before clicking Confirm & Broadcast.
TXMODEM is free and open source. If it's useful to you, a tip over Lightning helps keep cypherpunk Bitcoin tools coming:
npub1t5nvfnlmegsqkqegcpnyek4qf4fc2f2gx2t4lm88h2kq22plpmxqdhgpa9@npub.cash
(An npub.cash Lightning address: scan the QR code or paste the address into any Lightning wallet.)
You can also support TXMODEM by picking up a BitBox02 hardware wallet (referral link) — Swiss-made, open-source Bitcoin hardware security.
MIT. Use it, fork it, air-gap it, run your own.
Includes bundled offline QR decoding via jsQR (Apache-2.0 License).





