Fluidus

Open source · MIT license ·

Discover what real privacy means.

Fluidus is an end-to-end encrypted messenger for the terminal. It runs on your LAN or routed overlay with no cloud servers, no accounts, and no telemetry.

Built on

  • AES-256-GCM
  • X25519
  • Ed25519
  • Argon2id
  • HKDF-SHA256
  • HMAC-SHA256
  • PBKDF2 (600K)
  • TOTP

Why Fluidus

Most messengers depend on central servers and external accounts. Fluidus keeps discovery, sessions, and storage under your control.

RequirementFluidusTypical cloud messengers
Internet connection requiredNo (LAN or overlay)Yes
Where data travelsYour network or overlay onlyProvider servers
Account or phone numberNoneUsually
End-to-end encryptionX25519 + AES-256-GCMVaries by product
Terminal interfaceNative (Textual)Rarely
Source codeAuditable, MIT licensedVaries
Panic password and auto-lockBuilt inRarely
Key rotation and persistent blockingYesVaries
Local database encryptionAES-256-GCM + Argon2idVaries

How it works

From vault creation to ratcheted, encrypted messages.

01

Vault creation

On first launch, you enter your display name, a shared group code (12–256 chars), and a strong PIN (min 12 chars with lower, upper, digit, and symbol). Fluidus generates a random 32-byte master key and wraps it with Argon2id (time=3, memory=64 MiB, parallelism=4).

02

Peer discovery

Instances broadcast UDP beacons on port 50505 every 2 seconds carrying current and previous TOTP-derived code tags and public keys. Peers expire after 15 seconds without a beacon, or you can add directly by IP and TCP port (50510–50600).

03

Secure adding

To add a peer, you enter their rotating 8-digit TOTP code (60s window). Your request includes a 32-byte challenge and an HMAC-SHA256 proof over the code, verified against the current and previous 60-second window without exposing the code itself.

04

Encrypted chat

Starting a chat runs an ephemeral X25519 exchange and derives independent send and receive hash chains via HKDF-SHA256. Each message is padded to 256-byte blocks, encrypted with AES-256-GCM, and signed with Ed25519.

Cryptographic architecture

Standard cryptographic primitives across session setup, message ratcheting, control frames, and local storage.

  1. X25519 ephemeral exchange

    Each chat session generates fresh ephemeral X25519 keys to compute a shared secret, while control frames are authenticated by your Ed25519 identity key.

  2. HKDF-SHA256 chain derivation

    The shared secret and sorted ephemeral public keys derive a 64-byte key material split into directional send and receive ratchet chains.

  3. AES-256-GCM and hash ratchet

    Each message derives a per-message key, pads the plaintext to a 256-byte block, encrypts with AES-GCM bound to sender and counter AAD, and advances the chain key via HMAC-SHA256.

  4. Ed25519 signatures and audit chain

    Messages (including reply and reaction targets) and control frames are Ed25519-signed, while local security events are recorded in an HMAC-SHA256 chained audit log.

tui/app_handlers.pySecure payload
async def send_chat_message(
    self, contact_name, text,
    reply_to=0, react_to=0, from_outbox=False
):
    async with self._get_contact_lock(contact_name):
        contact = self.db.get_contact(contact_name)
        send_chain = bytes.fromhex(
            contact.get("send_chain_key_hex", "")
        )
        counter = contact.get("send_counter", 0) + 1
        msg_key = chain_message_key(send_chain)
        padded = pad_message(text.encode("utf-8"))
        nonce = os.urandom(12)
        aad = f"{self.user_name}:{counter}".encode("utf-8")
        ct = aes_gcm_encrypt(msg_key, padded, nonce, aad)

        signed_data = (
            self.user_name.encode("utf-8")
            + counter.to_bytes(8, "big")
            + nonce + ct
            + reply_to.to_bytes(8, "big")
            + react_to.to_bytes(8, "big")
        )
        sig = sign_bytes(self.ed_private, signed_data)
        new_chain = chain_advance(send_chain)
        self.db.set_contact_state(
            contact_name,
            send_chain_key_hex=new_chain.hex(),
            send_counter=counter,
        )

Features

A complete suite of security and usability features built into the terminal interface.

What Fluidus is not: no file transfer, no images, no group chats, no native mobile app, no PIN recovery, no chat history export, no cross-VLAN UDP broadcast without a VPN, overlay, or Add by IP, and no ratchet encryption on signed presence and typing frames.

Frequently asked questions

Technical details drawn directly from the Fluidus source code.

Install Fluidus

Free and open source. No accounts, no subscriptions, no telemetry.

Download for Windows Fluidus-Setup.exe · x86_64
Pre-built installers target x86_64 processors only. On ARM64 systems (Apple Silicon, Windows on ARM, ARM Linux), install Python 3.9+ and use pip install fluidus or install from source.