A desktop messenger for the Hidden Lake anonymous network.
  • Rust 97.3%
  • Python 1.8%
  • Shell 0.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
hl-egui 690624916d
All checks were successful
ci / test (push) Successful in 13m13s
release / release (push) Successful in 15m10s
chore: release v0.2.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 14:02:37 +03:00
.forgejo/workflows build: cargo update, rust image with Rust 1.100 2026-11-17 10:33:51 +03:00
assets feat(ui): English interface, language follows the OS 2026-11-17 10:34:19 +03:00
scripts build: list Rust std and winpthreads in THIRD-PARTY-LICENSES 2026-11-16 20:29:57 +03:00
src fix(ui): keep real gpu over warp, match wgpu order 2026-11-20 14:00:00 +03:00
tests feat(ui): English interface, language follows the OS 2026-11-17 10:34:19 +03:00
.gitignore chore: ignore CLAUDE.md and .claude/, drop TODO.md 2026-11-17 10:34:00 +03:00
build.rs feat(icon): app icon on all platforms 2026-11-15 21:06:59 +03:00
Cargo.lock chore: release v0.2.1 2026-11-20 14:02:37 +03:00
Cargo.toml chore: release v0.2.1 2026-11-20 14:02:37 +03:00
LICENSE chore: release prep (CI, cross-platform release, MIT license) 2026-11-15 18:45:40 +03:00
README.md fix(ui): keep real gpu over warp, match wgpu order 2026-11-20 14:00:00 +03:00

hl-egui

A desktop messenger for the Hidden Lake anonymous network.
Windows and Linux. Encrypted profile, duress password, no accounts.

Download · Quick start · Your own relay · Security · Build

Chat window: contact list on the left, a conversation with a verified contact on the right, disappearing messages set to one day

hl-egui is a graphical client for Hidden Lake. It runs the stock Hidden Lake kernel (hlk) and TCP adapter (hla-tcp) and keeps everything they need in a profile encrypted with your password. The interface is in Russian or English, following the system language.

  • Profile encrypted at rest. Messages, contacts and the node key are stored with Argon2id + XChaCha20-Poly1305. Without the password they can't be read.
  • Duress password. A second password crypto-erases the profile and opens an empty one, with nothing on screen to say it happened.
  • Contact verification. Both sides see the same 40-digit code; read it to each other over another channel.
  • Disappearing messages, per contact: one hour, one day or seven days.
  • Panic lock (Ctrl+Shift+L) and idle lock wipe keys and chat history from the window at once.
  • Constant traffic. The client sends equal-size packets at a fixed rate whether you type or not, so an observer can't tell when or to whom you write.
Safety code dialog with 40 digits in eight groups New profile form with password and duress password fields
Comparing the safety code with a new contact. Creating a profile: the main password and the duress password.

Quick start

For two people who want to talk.

  1. Download the archive for your OS and SHA256SUMS.txt from the releases page, and check the hash:

    sha256sum -c SHA256SUMS.txt --ignore-missing         # Linux
    
    Get-FileHash hl-egui-*-windows-x64.zip               # Windows: compare with SHA256SUMS.txt
    

    This only catches a broken download. The release is not signed, so it does not prove the files are the ones the author built.

  2. Unpack the archive so that hl-egui, hlk and hla-tcp sit in one folder, and run hl-egui. Set a password and a separate duress password. The Windows exe is not signed, so SmartScreen warns on first start (More info → Run anyway). The Linux build needs glibc 2.31 or newer (Ubuntu 20.04+, Debian 11+).

    In VirtualBox with 3D acceleration the guest GPU driver can't draw the window, so hl-egui switches to a software renderer there automatically.

  3. Exchange keys. "+ New contact" → "Copy my key", and send the key to the other person by any channel. In the same dialog paste their key, give them a name, and click "Add".

  4. Verify. Click "⚠ code not verified", compare the 40 digits with the other person (over the phone, say), then click "Codes match".

Contacts are compatible with the original hls-messenger.

By default the client uses the Hidden Lake author's public TCP relay (network std-external-tcp, 193.233.18.245:9581, from build/networks.yml). The relay sees participants' IP addresses, but not message content and not who talks to whom. To keep your IP from it, run your own relay.

Your own relay

A relay is the standard Hidden Lake hla-tcp node. It forwards fixed-size encrypted packets and never learns the sender or recipient, so it needs no trust. Run your own in one of two modes.

Mode Who it carries What it changes
Private Only the people you give its address to. An observer watching the server sees two IPs exchanging traffic; the relay operator (you) sees participants' IPs. There is no proof-of-work in this mode, so keep the address private.
Bridged (-n std-external-tcp) You, plus the public Hidden Lake network. Your home IP reaches only your server, not the public relay, and you stay hidden inside the whole network's traffic. If the public relay goes down, the two of you keep talking through yours.

Server setup (Linux, systemd)

Build the relay from the hidden-lake source and install it:

cd hidden-lake && CGO_ENABLED=0 go build -o hla-tcp ./cmd/hla/hla-tcp
sudo install -Dm755 hla-tcp /opt/hla-tcp/hla-tcp

/opt/hla-tcp/hla-tcp.yml:

logging:
- warn
- erro
address:
  external: 0.0.0.0:9581   # IPv6: quote it, e.g. "[::]:9581" or "[2001:db8::1]:9581"

external listens on all IPv4 interfaces here. For IPv6 the value must be quoted, because an unquoted [...] is a YAML list: "[::]:9581" (all IPv6, and IPv4 too on a dual-stack host) or a specific "[2001:db8::1]:9581".

/etc/systemd/system/hla-tcp.service:

[Unit]
Description=Hidden Lake TCP relay
After=network-online.target

[Service]
ExecStartPre=/bin/cp -f /opt/hla-tcp/hla-tcp.yml /var/lib/hla-tcp/hla-tcp.yml
ExecStart=/opt/hla-tcp/hla-tcp -p /var/lib/hla-tcp
# Bridge to the common network instead:
# ExecStart=/opt/hla-tcp/hla-tcp -p /var/lib/hla-tcp -n std-external-tcp
DynamicUser=yes
StateDirectory=hla-tcp
Restart=always
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes

[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload && sudo systemctl enable --now hla-tcp

Open TCP port 9581 to the internet. With -n std-external-tcp the relay both listens on 9581 and connects out to the public network.

Client settings

On each client, in "⚙ Settings":

  • Network: set the relay to your_server_ip:9581, and remove the public one (see below: never keep the public relay in a client).
  • Advanced: network key empty for a private relay, std-external-tcp for a bridged relay. The key must match on both clients and the relay. A name unknown to Hidden Lake is rejected with an error. hla-tcp connects only to the relays you list.

Redundancy without exposing your IP

A relay only ever sees the IP of whoever connects to it directly. So never list the public relay in a client: the client would connect to it and hand it your home IP, which is exactly what a bridged relay avoids. For a fallback, run a second hla-tcp on another server, also bridged (-n std-external-tcp), and list only your own relays in the client (server1:9581, server2:9581). The client talks only to your servers; each one bridges to the common network. If one server goes down the other carries you, and the public relay still only ever sees your servers. (The other way to hide the client's IP is a different transport: Tor, a VPN, or Yggdrasil, below.)

Yggdrasil transport (optional)

Reach your relays over the Yggdrasil overlay instead of the public internet. Install Yggdrasil on the clients and the relay servers, bind the relay to its Yggdrasil address ("[::]:9581"), and set the relay in each client to [ygg-address]:9581. Nothing in hl-egui changes; the OS routes it. Either implementation works: yggdrasil-go or Yggdrasil-ng. This keeps the relay addresses and your home IP off the public internet. Yggdrasil transport lives on the yggdrasil branch.

Security

  • The on-disk profile is encrypted (Argon2id + XChaCha20-Poly1305). Without the password, messages, contacts, and the HLK key are unreadable; record names are hidden behind HMAC and value sizes are padded to buckets.
  • The duress password silently destroys the data (crypto-erase) and opens an empty profile. It only works on the copy of the profile it runs on: any older copy (a backup, Windows shadow copies or File History, a filesystem snapshot, a cloud-synced folder) still opens with the main password. Keep the profile folder out of backups and sync.
  • Panic lock (Ctrl+Shift+L) and the idle lock wipe keys and UI state at once.
  • While the profile is unlocked, hlk and hla-tcp work in <profile>/run/ (on Linux in $XDG_RUNTIME_DIR/hl-egui-* when that directory is set and private to you; it is usually a tmpfs in memory). The kernel's private key is written there at each network start and deleted as soon as the kernel is up, but the friends list (hlk.yml), hla-tcp.yml and the kernel's replay database (hlk.db, hashes of seen messages, no message text) stay there as plain files. The kernel API and the app's inbox have no authentication. They listen on a random loopback address (127.x.y.z, new at each start) rather than 127.0.0.1, so a web page in your browser cannot guess where to send requests. Any program running on your machine can still find and use them. Hidden Lake's own threat model assumes a trusted machine, and so does this app while it is unlocked.
  • When you lock or quit, hlk.db is saved back into the encrypted profile and run/ is removed. It is also removed at app start (after a crash), on the duress password and on profile creation. hlk.db is saved only at lock, so after a crash it goes back to the state of the last lock.
  • In-memory secrets are zeroed (zeroize) and pinned against swap: best effort, not a guarantee.

Accepted limitations

  • No protection against a compromised OS, keyloggers, or memory snapshots (minidumps, hibernation).
  • After the duress password, the file sizes and timestamps still show a profile existed; the encrypted profile can no longer be decrypted.
  • While unlocked, the node's private key (for a few seconds at each network start) and the contact list are written to run/ as plain files, so they may be recoverable with forensic tools, also after the duress password. On Windows the files hl-egui writes are created as temporary files and the key file is overwritten with zeros before it is deleted; hlk rewrites hlk.yml itself when contacts change, and that copy is an ordinary file. On Linux a tmpfs keeps them in memory, but memory can still be written to swap.
  • An SSD may not physically erase old data, so with the main password some deleted messages can be partially recovered.
  • Text you copy out of a message stays in the OS clipboard.
  • Disappearing messages are deleted only on your side. The other person keeps their copy as long as their own settings say.

Traffic analysis (checked on live traffic)

On the wire the client sends a constant stream of equal-size packets at a fixed rate, the same whether you type or stay idle, so an observer cannot tell when, to whom, or whether you message at all. A full packet capture of a running client showed no message content and nothing that tells your contacts apart. It does not hide that you use Hidden Lake: the transport key is the public network name (or empty), so traffic inspection can recognize Hidden Lake and see which relay you connect to. What you send and to whom stays hidden.

Build from source

Rust (stable) on Windows or Linux:

cargo test            # unit + core end-to-end (fake-hlk) + GUI tests
cargo build --release
cargo check --target x86_64-unknown-linux-gnu   # check the Linux paths from Windows
UPDATE_SNAPSHOTS=true cargo test --bin hl-egui  # regenerate tests/snapshots/
UPDATE_SNAPSHOTS=true cargo test --bin hl-egui readme_screenshots -- --ignored  # assets/screenshots/

The GUI tests (egui_kittest) render frames through wgpu, so they need a GPU adapter (a software one such as WARP or lavapipe works) and system fonts. They build fake-hlk (a stand-in for the Hidden Lake kernel) into target/debug/, so only a plain cargo test works: with --release or --target the binary lands elsewhere and is not found.

The app runs hlk and hla-tcp, built from hidden-lake; both must sit next to hl-egui. To run without them during development, point the app at fake-hlk:

HL_EGUI_DIR=./tmp-profile HL_EGUI_HLK=./target/debug/fake-hlk HL_EGUI_HLA=./target/debug/fake-hlk cargo run --bin hl-egui

These variables are read in debug builds only; release builds ignore them.

Variable Purpose Default
HL_EGUI_DIR profile directory %APPDATA%\hl-egui / $XDG_DATA_HOME/hl-egui
HL_EGUI_HLK path to hlk next to the executable
HL_EGUI_HLA path to hla-tcp next to the executable
HL_EGUI_LANG UI language, en or ru system language

License

MIT. Release archives also include THIRD-PARTY-LICENSES.txt.