Abstract
HexHoot is an open-source, peer-to-peer messenger with no central servers. Your account is a key pair derived on your own computer from your name and password. Contacts find each other over a distributed hash table (DHT) on the internet, or directly on the local network. Messages are end-to-end encrypted with post-quantum hybrid cryptography: every key exchange combines classical elliptic-curve cryptography (P-521) with ML-KEM-1024, so a conversation stays secret as long as either one holds. All data stays on the users' devices, encrypted at rest. The core vision is to restore user sovereignty over data and to build infrastructure for resilient communication, even under network disruption or censorship.
Introduction & Motivation
Problem Statement
Many modern communication platforms rely on centralized infrastructure, which creates privacy, censorship, transparency and vendor-lock-in concerns. Central servers can be single points of failure, targets for surveillance, or places where user data is harvested or misused.
Much of the earlier software that enabled peer-to-peer communication still relied on a central server to authenticate users, not by choice, but because that was the only practical way. HexHoot does without one. Your identity is a key pair that only your name and password can recreate, your address is a fingerprint of it, and every conversation starts with a handshake in which both sides prove they hold their keys. Nobody needs to vouch for anyone.
Vision & Principles
HexHoot operates on principles of decentralization, transparency and user data sovereignty. It aims to provide authenticated, encrypted communication without central authorities, keeping data local to users' devices, and it is open-source software under the AGPL-3.0.
Status of HexHoot 2.0
HexHoot 2.0 is out: a ground-up rebuild of the cryptography, the protocol and the interface. Installers for macOS, Windows and Linux are on the releases page.
Its protocol and implementation have not yet been reviewed by an independent cryptographer, so please treat it as experimental and don't rely on it for sensitive conversations until that review is done. Version 2 cannot talk to version 1, which has serious known flaws and is no longer supported.
How It Works
- Your account is your name and password. Signing in for the first time derives your keys from them, which takes a few seconds on purpose: it makes guessing passwords very slow. The password needs at least 16 characters. After that, your operating system's keychain keeps you signed in, and now and then HexHoot offers a quick, optional check that you still remember your password. There is no server, so a forgotten password cannot be recovered.
-
Your address starts with
hh21and is 62 characters long. Share it with friends. Its checksum catches every typo of up to four characters. A friend request waits until the other person accepts it, and nothing about you is sent until they do. - Safety numbers. Each contact's profile shows an 80-digit number. If you and your friend see the same number, for example when you compare it in person or on a call, your messages go only to each other, and you can mark the contact as verified.
- Two ways to connect. Over the internet through Hyperswarm's DHT, and on the local network directly. Both carry only encrypted data.
- Messages wait until they are delivered. If your friend is offline, messages stay on your computer and go out as soon as they come back online. There is no server that holds them in the meantime, so both of you need to be online at the same time at some point.
-
Backups. You can save your contacts and chat history as an encrypted
.hexhoot2file, protected by a passphrase you choose.
Architecture & Technical Design
Identity from a Name and Password
Earlier versions of HexHoot described their login as zero-knowledge-proof based. Version 2 replaces that description with exactly what the software does. The name and password are stretched with scrypt (N = 220, about 1 GiB of memory per guess, salted per name) into a seed, from which a hybrid identity is derived: an ECDSA P-521 key and an ML-DSA-87 (post-quantum) key, bound together in a self-signed bundle. The address is a Bech32m-encoded fingerprint of that bundle. Because the same name and password always produce the same keys, signing in on a fresh computer restores the account, with no server involved.
Post-Quantum Hybrid Cryptography
Every conversation starts with a SIGMA-I handshake in which both sides sign with both of their identity keys, and both signatures must verify. The session then runs a Double Ratchet that performs a fresh hybrid P-521 + ML-KEM-1024 exchange in every turn, which gives forward secrecy (past messages stay safe after a compromise) and post-compromise security (future messages become safe again once an attacker loses access).
| What | How |
|---|---|
| Key exchange | ECDH P-521 together with ML-KEM-1024: a message stays secret as long as either one holds |
| Signatures | ECDSA P-521 together with ML-DSA-87, and both must verify |
| Sessions | A SIGMA-I handshake, then a Double Ratchet with a fresh ML-KEM-1024 exchange in every turn |
| Encryption | AES-256-GCM, with a new key for every message, and padding that hides exact message lengths |
| Hashing & derivation | SHA-512, HKDF-SHA-512, HMAC-SHA-512, scrypt |
| On your computer | Everything is encrypted under a key that the operating system's keychain protects |
| Libraries | Only the cryptography built into Electron; no third-party crypto library |
The strongest standardized option was chosen for every primitive, and all of them come from the cryptography already built into Electron and Node.js, so HexHoot adds no third-party cryptographic code to trust.
Peer-to-Peer, Serverless Delivery
HexHoot uses no servers of its own. Peers find each other through Hyperswarm's DHT on the internet, or through a local-network carrier that works even when the wider internet is unavailable. On the wire, envelopes carry no names, addresses or keys, and messages carry random-looking session tags.
Every message stays in an outbox until the recipient's device confirms it with a receipt. Resends back off from 3 to 60 seconds, and whatever is waiting is sent at once when a peer reappears on either carrier. Ratchet state is saved before a message is sent, so a crash or restart never loses or repeats a key.
Local, Encrypted Storage
Contacts, messages and keys are stored only on the user's device, in a database encrypted record by
record with AES-256-GCM under a vault key that the operating system's keychain protects. Backups are
encrypted .hexhoot2 files sealed with scrypt and AES-256-GCM under a passphrase the
user chooses; they never include session state.
Application Hardening
Networking, storage and cryptography run in a separate background process (Core). The window you
see is sandboxed with context isolation, has no access to Node.js, and runs under a strict content
security policy without eval. What a peer sends is always shown as plain text, never as
markup, and links open in the browser only after a dialog shows where they lead. The toolchain was
upgraded to a current Electron release, and packaged builds have Electron's security fuses set.
APIs & Third-Party Integration (Open Challenges)
Allowing third-party apps or plugins to integrate with a local, privacy-first client is difficult. Plugins could attempt to access stored data. Approaches such as sandboxing, capability-based permissions, or audited open-source add-ons are discussed, but a practical, scalable API model remains an open research problem.
The Hive: The New Interface
Version 2 comes with a completely redesigned interface called The Hive. Your contacts form a honeycomb, each conversation is a chain whose hexagons fill in as messages are delivered, and the header shows how you are connected.
- Night and day themes, or follow the computer's setting, with bundled fonts so nothing is fetched from the internet.
- Delivery you can see: delivery marks on every message, a "Don't send" option for messages still waiting, and how each friend was last heard from (local network or internet).
- Friend requests that can be accepted, declined or withdrawn, and contacts that can be removed or blocked. Blocked addresses cannot even complete a handshake.
- Comfortable reading: long messages folded behind "Show all", emoji-only messages shown large, a "new messages" jump while reading further up, a list view for big hives, keyboard navigation, desktop notifications and a narrow-window layout.
- Settings for profile, security, backup, appearance, language and blocked contacts, with the interface available in five languages.
- Accessibility: every screen is checked automatically in both themes for WCAG AA contrast and for named controls, and messages are read out clearly by screen readers.
Testing
Because there is no server to observe, HexHoot is tested by running several real copies of the app against each other. The test suite covers the cryptography (including known-answer tests), the protocol, Core, and end-to-end scenarios in which multiple instances befriend each other and exchange messages over both the DHT and the local network, with dropped and reordered packets, restarts, three peers at once, and the same account in a fresh profile. An adversarial "evil peer" sends replays, tampered and malformed frames to check that none of them are accepted. These tests already found and fixed several real bugs before release. Packaged installers for macOS, Windows and Linux are smoke-tested on every release tag.
Use Cases & Resilience Scenarios
Private, Secure Communication
HexHoot's main use case is private chat and messaging for users requiring strong confidentiality, authenticity and control of their data, suitable for privacy-conscious individuals and sensitive organizations, and designed to stay confidential even against future quantum computers.
Communication During Internet Disruptions
The platform is valuable in scenarios of network outages, censorship or natural disasters where centralized services fail. The local-network carrier allows continued communication inside a constrained area with no internet connection at all.
Intranets & Local Community Networks
In closed networks (campus, office, community network), HexHoot can reduce dependence on third-party SaaS and provide a privately controlled communication layer.
Limitations & Open Problems
HexHoot is open about what it does not protect against. These are known and accepted for 2.0:
- Weak or forgotten passwords: Because the identity is derived from the name and password, anyone who knows your name can try guesses offline. Each guess is deliberately expensive and a 16-character password is out of reach of brute force, but a well-known phrase can still be guessed. A forgotten password cannot be recovered.
- Offline & asynchronous messaging: Without servers, both people must be online at the same time at some point for a message to be delivered. Opt-in relays would help, but they add new trust assumptions.
- Online presence and IP addresses: Someone who knows your address can find your computer on the DHT while you are online and learn its IP address.
- One device at a time: Signing in on another computer moves the account rather than copying it. Secure multi-device sync is still open.
- Deniability: The handshake is signed, so a contact could prove to others that you talked to them.
- A compromised computer: The keychain protects data at rest, not a running, unlocked session.
- API security: Preventing third-party code from exfiltrating user data demands careful sandboxing or capability-based permission models.
- Usability & adoption: Onboarding, trust establishment and the network effect remain the key adoption hurdles.
Roadmap & Recent Updates
The project is open source on GitHub, where the design documents, decisions and a detailed development log are published alongside the code. HexHoot 2.0 was built in phases:
- Done: hardening and toolchain. A review of version 1's cryptography, a modern Electron, a locked-down window, and networking and storage moved into a separate Core process.
- Done: post-quantum cryptography. Hybrid identity keys, Bech32m addresses, the SIGMA-I handshake, the Double Ratchet with ML-KEM-1024 in every turn, the encrypted keyring and encrypted backups.
- Done: wire protocol v2. Envelopes without identities, receipts and resends, and the DHT and local-network carriers.
- Done: The Hive interface, with themes, five languages and automated accessibility checks.
- Done: testing and packaging. Multi-instance end-to-end and adversarial tests, and installers for macOS (DMG), Windows (installer and portable zip) and Linux (AppImage and .deb).
- Released: HexHoot 2.0.0, on 27 November 2026.
- Next: independent cryptographic review. An external review package lists the specifications, the code, the tests and the questions we most want answered.
Security researchers are welcome: please report vulnerabilities privately through the repository's Security tab on GitHub.
Competitive Landscape & Positioning
HexHoot sits among secure messaging and decentralized systems. Compared to Signal and WhatsApp, it avoids central servers and phone numbers. Compared to Matrix, it avoids federation servers. Compared to Briar, Session or Tox, HexHoot emphasizes accounts that are nothing more than a name and a password, post-quantum hybrid encryption in every ratchet turn, and a strictly local-first design.
Strengths include strong decentralization, conservative cryptographic choices and resilience. Key weaknesses are maturity (the external review is still pending), delivery that needs both people online, and achieving network effects.
Conclusions & Next Steps
Summary
HexHoot proposes a practical, privacy-first path for communication grounded in peer-to-peer networking and strong cryptography. With version 2, its identity, encryption, storage and interface have been rebuilt from the ground up around post-quantum hybrid cryptography and a friendlier, accessible design, while keeping its commitment to local data ownership and to working in disconnected environments.
Further Work
- Security review: Complete the independent cryptographic review of HexHoot 2.0.
- Asynchronous delivery: Design opt-in relays or hybrid models that let messages reach offline friends while minimizing new trust surfaces.
- Multiple devices: Secure peer-to-peer sync, so one account can be used on more than one computer at once.
- Metadata protection: Reduce what the DHT reveals about presence and IP addresses.
- API sandboxing: Explore capability-based permissions or sandboxed WASM modules for safe third-party extensions.
- Community & adoption: Mobile clients, and outreach to privacy- and resilience-focused communities.