Let the code prove tracker connections instead of the user
Both sides derive an HMAC key from the code, next to the swarm ID, and sign their role and both DTLS fingerprints as they see them. An interposer or a peer that found the swarm without the code can't, so its connection ends and the next peer gets its turn, as does one that proves nothing within 10 s. Tracker transfers need no comparing and no clicks anymore, the manual exchange keeps its fingerprint check. The swarm ID changes once more, old and new clients don't find each other. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
707248f36b
commit
c6145b8919
4 files changed
+193
-89
No files matched your search
@@ -6,10 +6,10 @@ size limit: the file goes directly to the other person and is never stored on a
|
||||
## How to send a file
|
||||
|
||||
1. **Sender:** open HellCon, drop a file onto the Send card and click **Share via tracker**. You get
|
||||
an 8 character code. Tell it to the receiver, it works for 6 minutes.
|
||||
an 8 character code. Tell it to the receiver, it works for 6 minutes. Whoever has the code can
|
||||
get the file, so give it to nobody else.
|
||||
2. **Receiver:** open HellCon, enter the code under Receive and click **Receive**.
|
||||
3. **Both:** compare the security check (see below) and click **Codes match**.
|
||||
4. **Receiver:** you now see the file's name and size. Click **Download** to save it.
|
||||
3. **Receiver:** once connected, you see the file's name and size. Click **Download** to save it.
|
||||
|
||||
Keep both tabs open until the transfer is finished. Starting something new in a tab ends what that
|
||||
tab was doing.
|
||||
@@ -20,12 +20,20 @@ If you'd rather not use a tracker, open **Manual** on both sides. The sender cre
|
||||
long block of text, and sends it to the receiver any way you like, e.g. a chat or an email. The
|
||||
receiver pastes it, creates an answer and sends that back. The sender pastes the answer and clicks
|
||||
**Connect**. The offer and answer contain your network addresses, so only share them with the person
|
||||
you're sending to.
|
||||
you're sending to. Both sides then compare the security check (see below) and click **Codes match**.
|
||||
|
||||
## The security check
|
||||
|
||||
Once connected, both sides see two short codes: **You** and **Peer**. Compare them with the other
|
||||
person over a channel you already trust, ideally a call or in person:
|
||||
Before anything is transferred, both sides make sure they are connected directly to each other and
|
||||
not to someone who placed themselves in between.
|
||||
|
||||
With the code this happens by itself: each side proves to the other that it knows the code, tied
|
||||
to the encryption keys of this very connection. Someone in between, or anyone else who doesn't
|
||||
know the code, can't do that, and HellCon drops the connection and waits for the right one.
|
||||
|
||||
The manual exchange has no code, so there you compare yourselves. Once connected, both sides see two
|
||||
short codes: **You** and **Peer**. Compare them with the other person over a channel you already
|
||||
trust, ideally a call or in person:
|
||||
|
||||
- your **You** must be their **Peer**, and
|
||||
- your **Peer** must be their **You**.
|
||||
|
||||
Reference in new issue
Block a user