- Rust 97.3%
- Python 1.8%
- Shell 0.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .forgejo/workflows | ||
| assets | ||
| scripts | ||
| src | ||
| tests | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
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
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.
![]() |
![]() |
| 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.
-
Download the archive for your OS and
SHA256SUMS.txtfrom the releases page, and check the hash:sha256sum -c SHA256SUMS.txt --ignore-missing # LinuxGet-FileHash hl-egui-*-windows-x64.zip # Windows: compare with SHA256SUMS.txtThis only catches a broken download. The release is not signed, so it does not prove the files are the ones the author built.
-
Unpack the archive so that
hl-egui,hlkandhla-tcpsit in one folder, and runhl-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.
-
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".
-
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-tcpfor 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-tcpconnects 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,
hlkandhla-tcpwork 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.ymland 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.dbis saved back into the encrypted profile andrun/is removed. It is also removed at app start (after a crash), on the duress password and on profile creation.hlk.dbis 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;hlkrewriteshlk.ymlitself 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.

