Salt the tracker swarm with the clock or an own salt
The code used to be derived with a fixed salt, so a tracker could compute a table from swarm to code ahead of time, once for every share. Now the salt is the UTC 6 minute window the share was made in, and the code's new 11th character names that window, so the receiver finds it even with a clock hours off. Use own salt adds a salt both sides agree on, which nobody can guess ahead for; Generate makes a random one. The salt is locked while a tracker share or search runs, and a receiver that finds no sender is told to check the salt too. Settings are no longer kept in localStorage: a remembered list or salt that differs from the other side's would silently break shares. The core now reports when a share expires and until when it lasts, and the session owns a tracker's timers, so a socket still closing after an abort announces nothing more. Header options line up with the cards, disabled switches look disabled, and sizes, percents and times don't wrap. postcss 8.5.32. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e3a2b348d6
commit
2e47b55901
7 files changed
+462
-142
No files matched your search
@@ -6,7 +6,7 @@ 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
|
||||
a 10 character code. Tell it to the receiver, it works for 6 minutes. Whoever has the code can
|
||||
an 11 character code. Tell it to the receiver, it works for 6 minutes. Whoever has the code can
|
||||
get the file, or pretend to be you, so give it to nobody else.
|
||||
2. **Receiver:** open HellCon, enter the code under Receive and click **Receive**.
|
||||
3. **Receiver:** once connected, you see the file's name and size. Click **Download** to save it.
|
||||
@@ -74,7 +74,7 @@ networks, a direct connection may not be possible.
|
||||
sticks with the first that answers. The sender stays on the first tracker that accepts it. The
|
||||
receiver goes down the list until it finds the sender, and the trackers it passes keep its
|
||||
encrypted offer. Nobody without the code learns your address through a tracker.
|
||||
- Settings (STUN on or off, your server lists) are kept in your browser only.
|
||||
- Nothing is kept: every reload starts with the default settings.
|
||||
- Whoever hosts HellCon serves the code that runs in your browser. If you'd rather not trust that,
|
||||
host your own (below).
|
||||
|
||||
@@ -86,6 +86,15 @@ brings back the original lists. The order matters: the sender stays on the first
|
||||
works, the receiver tries them in order until it finds the sender. Both lists must contain that
|
||||
tracker.
|
||||
|
||||
The code goes to the tracker mixed with a salt, which changes with the clock every 6 minutes (by UTC):
|
||||
guessing codes ahead of time pays off for 6 minutes at most. The code's last character tells the
|
||||
receiver which 6 minutes it was made in, so the two clocks may be up to 3 hours apart. Someone could
|
||||
still guess ahead for a particular 6 minutes. If that worries you, turn on **Use own salt** on both
|
||||
sides and enter the same salt, agreed on any way you like. **Generate** makes a random one. Nobody
|
||||
can guess ahead for a salt they don't know.
|
||||
|
||||
Nothing of this is kept, a reload brings back the defaults.
|
||||
|
||||
## Host your own
|
||||
|
||||
HellCon is a static website, any web server can host it. Build it with Node.js and pnpm:
|
||||
|
||||
Reference in new issue
Block a user