TECHNICAL GUIDES

How Livara encryption, recovery, and sync work

Understand what Livara encrypts, what the platform stores, how recovery works, and why realtime delivery still needs durable synchronization.

01
ENCRYPTION

What is end-to-end encryption (E2EE)?

In Livara one-to-one chats, message bodies and media are encrypted before upload and decrypted on a participant device.

Each device keeps independent P-256 and ML-KEM-768 private identities. A fresh ML-KEM contribution is encapsulated to both participants and combined with P-256 ECDH through HKDF-SHA-256.

Direct text uses AES-256-GCM with an additional HMAC-SHA-256 check. Direct media is encrypted before it reaches storage.

The server still stores routing, membership, timestamps, and ciphertext so connected devices can synchronize.

Back to top ↑
02
BOUNDARY

Which conversations are end-to-end encrypted?

Direct one-to-one chats are E2EE. Groups and channels currently use authenticated server storage and TLS, not E2EE.

Livara clients and server require hybrid ML-KEM-768 + P-256 encryption for every newly sent direct message, edit, caption, and attachment.

Group and channel messages are protected in transit with HTTPS/WSS and by server-side membership and role checks, but their content is available to the server.

Livara claims post-quantum hybrid protection only for direct-message content. It does not claim group end-to-end encryption, post-quantum call media, or hidden routing metadata.

Back to top ↑
03
RECOVERY

How does key recovery work?

A recovery phrase protects an encrypted backup of both direct-chat private identities for another signed-in device.

The P-256 private key and ML-KEM seed are bundled and sealed on the client with a random 256-bit recovery key, HKDF-SHA-512, and AES-256-GCM before upload. Restoring requires the recovery key; signing in alone is not enough.

Recovery format v5 binds its version and hybrid suite into authenticated data. Existing hybrid v4 backups are accepted and upgraded after a successful restore.

Public-key fingerprints can be compared between participants to detect an unexpected key change.

Losing both the private key and recovery phrase can make existing direct-chat ciphertext unrecoverable.

Back to top ↑
04
SYNCHRONIZATION

What does realtime sync mean?

A live connection delivers changes immediately, while a durable cursor repairs anything missed during a disconnect.

Socket events keep active conversations responsive without repeatedly polling the whole account.

Each relevant database change also advances a contiguous per-user sequence, so a reconnecting client can request the exact gap.

Clients deduplicate by stable IDs and reconcile authoritative server snapshots before advancing their saved cursor.

Back to top ↑
SYSTEM OVERVIEW

How identity, encryption, storage, and recovery connect

IDENTITYDevice keys
CONTENTEncryption
AUTHORITYShared state
CONTINUITYGap recovery
QUICK GLOSSARY

Glossary of Livara security and sync terms

Short definitions for terms used across Livara’s product and security documentation.

Ciphertext
Encrypted content that is unreadable without the correct derived key.
Durable cursor
A saved position in a per-user change sequence used to request only missed events.
Fingerprint
A compact representation of public identity keys that participants can compare.
Optimistic action
A local interface update shown immediately while the authoritative server result is pending.
WEB CLIENT

Try Livara Chat in your browser

Open the web client in a modern browser. No installation is required.

Open Livara Chat