WORK IN PROGRESS: MANY FEATURES MAY BE BROKEN ยท version 0.6.1-wip ยท proof of concept
Push up to 10 files between two computers on the same network, either way, then burn them after reading.
Paired by a one-time code, checked byte by byte, and it never goes near the internet.
Licence: source-available under the PolyForm Noncommercial License 1.0.0.
Free for personal and other non-commercial use; commercial use needs my permission.
No warranty, no liability: provided as is. Don't keep your only copy of anything in a burn-after-reading portal.๐ The whole manual and research notes as one PDF ยท
๐ฌ Design notes / research paper ยท
๐ก๏ธ Threat model ยท โ๏ธ How it works ยท
๐ Changelog ยท ๐๏ธ Build history
Project started 2026-11-24 22:39.
Why
You often need a file on the other computer once: an STL for the printer PC, a PDF for the laptop, a
config for the handheld. USB sticks get lost, email and cloud drives keep copies forever, and many LAN
"AirDrop" apps listen on your network all day.
Pocket Portals does one thing:
- On one computer, click Open portal. It shows an address and a code like
7KQM-2XPD. - On the other computer, drop up to 10 files, type the address and the code, click Link + push.
- The first computer sees the list and clicks Accept. The portal closes behind it, and the two computers stay linked.
- While linked, either computer can push files to the other, one way at a time: no new code needed, but every batch still needs Accept. The link closes when either side clicks Close link, or after 10 minutes with nothing sent.
Every copy of Pocket Portals can send and receive. It just never does both at the same moment.
Received files go to ๐ฅ Burn after reading (overwritten with zeros and deleted after 10 minutes,
1 hour, 24 hours, or when you close the app) or ๐ฆ Archive (kept).
Using it
Receive (open a portal)
- Pick Burn after reading or Archive, how long burn files live, and a size limit.
- Click Open portal. Read the address and code to the sender (or look across the desk).
- When they send, a dialog lists every file. Red CAN RUN CODE means a program or script. Change burn/archive if you like, then Accept or Decline.
- Files appear under Received files with their burn countdown. Open works only for plain data files (PDF, STL, images, text...), never for programs. Show folder opens the folder; Burn now burns it.
A wrong code closes the portal straight away:
Send
- Drop up to 10 files on the box (or click choose files).
- Type the portal address (
192.168.1.20:52525) and code exactly as the receiver shows them. - Choose whether you'd like it burned or archived (the receiver has the final say) and click Link + push (or Link only with no files, if you just want to receive). A progress bar, speed, time left and a "still connected" line show it is alive.
Send back over the same link (one way at a time)
Once linked, the Receive panel shows who you're linked with, and the Send panel no longer asks for an
address or code. Drop files and click Push to <computer>. While files are arriving, your Push button
waits until they've finished: a computer is sending or receiving, never both at once.
The other computer gets the same Accept dialog:
Click Close link on either computer when you're done. Otherwise it closes by itself after 10 minutes with nothing sent.
It also fits a phone-sized window (handheld in desktop mode, small laptop screen):
Command line (optional)
python3 src/main.py receive # open a portal here; accepts batches until the link closes
python3 src/main.py receive --archive
python3 src/main.py send 192.168.1.20:52525 7KQM-2XPD part.stl notes.pdf # one batch, then closes the link
python3 src/main.py burn-now # burn every burn-after-reading folder now
python3 src/main.py --version
Where files go
Desktop/Portals/<date time - sender - id>/ burn mode: wiped when the next burn batch is accepted (or on its timer)
Desktop/Portals/Archive/<date time - sender - id>/ archive mode: kept, never wiped
Each transfer gets its own new folder, so nothing you already have is ever overwritten. Before a new
burn batch is received, every earlier burn batch in Portals is burned. Archives are never touched, and
neither is anything you put in the Portals folder yourself (only folders Pocket Portals made are burned).
Remembered computers (long code once, short code after)
-
First time: the receiver opens a portal; the sender types the address and the long code (
7KQM-2XPD). - Both computers quietly keep a pairing secret (
pairs.jsonin~/PocketPortals, owner-only). - Every later session: the receiver types a 4-digit session code when opening the portal; the sender picks the remembered computer and types the same 4 digits. A stranger without the pairing secret cannot use the session code at all. Forget a computer from the "Remembered computers" list (on both sides) to start over.
What exists and what doesn't (0.6.1-wip)
| Feature | Status |
|---|---|
| One-shot portal, SPAKE2 code pairing, encrypted + authenticated frames | โ works, tested in the sandbox |
| Two-way link: either side pushes over one pairing, one way at a time, each batch accepted | โ new in 0.2.0, tested in the sandbox |
| Remembered computers: long code once, then a 4-digit session code you set per session | โ new in 0.4.0, tested in the sandbox |
| An orange Send portal and a green Receive portal (spinning CSS swirls): the green one glows and shows a number when files are inside | โ new in 0.4.1 |
| Received files go to Desktop/Portals; a new burn batch wipes the earlier burn batches first, archives are kept | โ new in 0.4.0, tested in the sandbox |
| Up to 10 files, size limit, disk-space check, per-file SHA-256 | โ |
| Burn after reading (10 min / 1 h / 24 h / on close) and Archive | โ |
| Browser control page (send + receive), command line | โ |
| Attack tests (wrong code, tampering, replay, path tricks, oversize, 11 files, data before Accept, double offers, CSRF, DNS rebinding, stranger using a session code) | โ 65 automated tests in total |
| Windows and macOS launchers, Mark-of-the-Web / quarantine flags | โ ๏ธ written, not yet run on real Windows or Mac |
| Real two-computer test | โ Matthew tested a ROG Ally (Bazzite) and a Linux Mint laptop on 2026-11-25: works. Not yet: Windows, macOS, a real 7th-gen Core i3, other network setups (details not recorded) |
| Automatic discovery of portals (no typing addresses) | โ left out on purpose for now (see design notes) |
| QR code for phones, Android app, folders, resume | โ not yet |
| Independent security audit | โ none. This is a hobby project, read SECURITY.md |
Speed on modest hardware
Pure Python, standard library only. Hashing and encryption run in Python's built-in C code
(SHAKE256, SHA-256, HMAC) in 256 KiB chunks, so memory stays around 20 MB however big the file is.
Measured in the build sandbox: 512 MiB in 8.0 s (64 MiB/s) with sender and receiver squeezed into one
process on one CPU core; each side alone does about twice that. Wi-Fi will usually be the limit.
Not yet measured on a real 7th-gen Core i3; expect it to be slower, but transfers stream, show progress
every second and report "still connected, no data for N s" if the network stalls.
Checksums
Every file is SHA-256 checked as it arrives (a mismatch aborts the transfer). The list shows each file's short fingerprint with a green tick, the folder gets a SHA256SUMS.txt, and Verify re-checks the files on disk later. Corruption and edits are caught; a malicious sender is not, since they supply the hash.
Build, test, docs
python3 -m unittest discover -s tests -v # 57 tests, standard library only
python3 tools/ui_screenshots.py # real two-copy UI run + screenshots (needs playwright, pillow)
python3 tools/draw_diagrams.py # redraw the diagrams (pillow)
python3 tools/make_pdf.py # build docs/PocketPortals-manual.pdf (markdown, pillow, playwright)
python3 tools/history_log.py # refresh docs/HISTORY.md
Built with no third-party runtime libraries on purpose: every extra dependency is another way in.
ยฉ Matthew Armstrong (The-Dorkknight) ยท PolyForm Noncommercial 1.0.0 ยท
Third-party notes ยท Contributing ยท Security
Source code: The-Dorkknight/pocket-portals on GitHub












Top comments (0)