Daily use#
Direct messages, groups and private channels use end-to-end encryption. New public channels can use server-managed keys with PUBLIC_CHANNEL_MANAGED_KEYS=true; in this mode the operator can access its content and the history delivery does not depend on another connected participant. See PUBLIC-CHANNELS.md. The app automatically generates and stores the keys: no one has to copy, write down or inform a key to create channels, send messages, or participate in calls.
The first device of an account is automatically authorized. After logging into another device, the binding screen blocks the workspace until authorization. The already connected device displays the QR in Your devices; the new device reads it and both display a six-digit code, confirmed at source. Alternatively, it is possible to restore a backup or recover the account without the history, with specific email confirmation.
The authorization gives access to the history of the account channels. A connected participant who already has each conversation automatically distributes the keys to authorized devices. If no device with that conversation is connected and there is still no package for the recipient, the interface shows that it awaits synchronization. The delivered packages are available on the server even after the sender disconnects.
Local storage#
flutter_secure_storage stores channel identities and secrets, separated by backend URL and account. There is no fallback for text files or preferences without protection.
- iOS: Keychain.
- macOS: Keychain without cross-app sharing using the
usesDataProtectionKeychain: falseoption, compatible with the local build without Keychain Sharing provisioning. - Android: Encrypted plugin storage and platform key protection. Automatic application Backup has been disabled to avoid restoring encrypted data without your local keys.
- Windows/Linux: secure plugin implementation; Linux requires Secret Service/libsecret and keychain available.
- Web: WebCrypto with encrypted data in the browser storage, bound to the origin. It is the experimental implementation of the plugin, not a hardware enclave. Requires HTTPS or localhost. Removing data from browser requires new authorization.
Logout closes the session at backend and discards the message keys in memory; it preserves the local identity in the vault so that you enter the same device again does not require further approval. The option to unlink revokes future access; the recovery without history revokes all other devices. An authorized device should be treated as capable of reading the history. Protection/ blocking of the operating system remains required.
Distribution protocol v1#
Each device generates X25519 (key agreement) and Ed25519 (signatures), both with 32 bytes secret. Registration proves possession of the signature key with the JSON UTF-8 array:
["sintonia-register-v1", userId, deviceId, publicKey, signingKey]
The first device is the root of the account. Additional approvals shall be signed by an authorized device of the same account:
["sintonia-device-v1", userId, deviceId, publicKey, signingKey, approverDeviceId]
The client checks the entire approval chain and fixes the root identity in the first contact (TOFU). Unexpected changes to the root or local keys are rejected. A recovery registered by the account service is automatically accepted when the previous root appears revoked and the recovery version advances; it does not require third party confirmation. This relies on recovery service as authority to authorize the new root. The server validates the registration and approval signatures, blocks change of identities and serializes the initial record on account.
A random channel secret from 256 bits is distributed separately to each device. X25519 produces a shared sender/destination secret; HKDF- It's okay.SHA256 derives a key AES- It's okay.256- It's okay.GCM with UUID the channel as salt and the context JSON ["sintonia-wrap-v1", channelId, senderDeviceId, recipientDeviceId] as info/AAD. . The package contains only ciphertext (32 bytes), random nonce (12 bytes), tag (16 bytes) and Ed25519 signature:
["sintonia-key-v1", channelId, senderDeviceId, recipientDeviceId, ciphertext, nonce, mac]
The start of the conversation and the package of the device itself are recorded atomically, with channel line blocking to prevent two competing winning keys. Packages are immutable per channel/destination. A sender can only distribute if he has already received a package of this conversation. Only authorized devices from channel members can receive packages. Customer checks signature, chain, recipient and integrity before persisting key.
Messages and calls#
The previous message format has been preserved: HKDF- It's okay.SHA256 drifts the key by channel, domain sintonia/messages/v1. . AES- It's okay.256- It's okay.GCM uses random nonce of 96 bits, tag of 128 bits and AAD ["sintonia-v1", channelId, userId, clientId, parentId]. . Only the encrypted contents reach the bank. The search remains local to the contents loaded and deciphered.
The call key is derived with separate domain, sintonia/calls/v1. LiveKit receives authorization tokens restricted to the channel, never the media key. The client requires E2EE, discards frames when the cipher is not ready and keeps camera/microphone initially off. worker E2EE web follows the blocked version of SDK.
Previous history and recovery#
Conversations created in manual flow are preserved. They can only be migrated with the old key once by someone who still owns it. The client confirms that it authenticates a history message before registering and distributing the key through the new stream. A wrong key doesn't replace the history. New conversations don't go through this procedure.
Activate backup on Backup and recovery while you still have an authorized device. The application confirms the login password and requires a distinct recovery password, from 12 to 128 characters. PBKDF2-HMAC-SHA256, with 600 thousand iterations and random salt of 16 bytes, derives a AES-256-GCM key. AAD is ["sintonia-recovery-v1", serverUrl, userId]. Encrypted content includes the authorized private identity and fixed roots. The recovery password does not enter any requests.
The server saves ciphertext, salt, nonce, tag and metadata. The recording requires Ed25519 signature of an authorized device and optimistic version control. Replacing an existing backup requires new confirmation by email OR 2FA, in addition to confirmation of access. In recovery, the archived identity is reconstructed only in memory and signs the authorization of a new identity; the identifiers of the devices are not cloned. Key packages intended for the archived device allow you to restore the history, including from conversations after backup when your packages have already been delivered to the archived identity.
Without backup previously activated or without your password, the history remains unrecoverable if all devices are lost. Recovering the login password does not change that. backup is linked to URL API: domain change requires migration planning.
QR connection and login recovery#
In the current flow (QR v3), the already authorized device generates a random token of 256 bits and signs ["sintonia-link-offer-v1", serverUrl, userId, sourceDeviceId, sourcePublicKey, sourceSigningKey, token, expires]. backend checks the signature, saves only token hash and limits validity to five minutes. The compact QR contains origin identifier, token, expiration and signature; account, server and keys are rebuilt from the local context and remain linked to the signature. Generating another QR invalidates the previous one.
After login, an additional device reads this QR, checks the authorized source and signs a request ["sintonia-link-claim-v1", userId, sourceDeviceId, sourcePublicKey, sourceSigningKey, targetDeviceId, targetPublicKey, targetSigningKey, token, expires]. The request does not grant confidence. Only the first valid recipient may reserve the offer. Both calculate a six-digit conference code from the hash of the request and the challenge. The person compares the codes and confirms on the connected device; this device checks the recipient's signature and signs the authorization persisted in the chain of devices. backend consumes the offer in transaction, rejects replay, expiration and account or recipient exchanges. Close the screen cancels the offer still open when there is connection; it also expires automatically. The camera is used only in the new device, through explicit action.
The first device in the account continues to be automatically authorized. Accounts with devices already registered require binding, restoration by backup or explicit restart without history, even if the previous devices are offline. The old routes of QR v2 remain for compatibility with previous customers; current screens use v3. Restoration by backup remains an explicit alternative to QR, authenticated by the private identity contained in the current backup.
Log-in recovery uses random tokens of 256 bits, stored by hash and sent in links by email from 15 minutes. The answer is the same for existing and unknown accounts. Repeated requests from the same account have a minimum interval of one minute. Redefining the password consumes token and revokes all sessions. E2EE and backup identities are not deleted or decrypted by the server.
The email is in a queue until delivery SMTP or expiration. The queue contains the link not yet delivered and needs operational protection from other authentication secrets. In development, Mailpit receives the emails locally. Production requires real SMTP and HTTPS. The code does not record recovery links or backup passwords in logs. If the recovery password is forgotten, a still authorized device can create a new backup with another password; the server does not recover the previous password.
Limits#
MLS and historical preservation#
Eligible local private conversations activate MLS 1.0 automatically when the devices and backups meet the compatibility barriers. The protocol uses X25519/AES- It's okay.128- It's okay.GCM/SHA- It's okay.256/Ed25519 and discards consumed transport keys. Old messages remain readable by format AES- It's okay.256- It's okay.GCM- V1. O backend does not accept silent downgrade after cutting; old customers need to update.
An independent copy, encrypted and signed, preserves the history. backup v2 recovers this file and legacy data without restoring ratchets. Accounts with backup V1 receive a discrete reminder to update it once, preserving the previous one. The new authorized device receives the account safe by a MLS courier. The loss of the transport cache requires new generations, without erasing identity/historical.
Forward secretion of transport does not eliminate deliberately retained copies in file, backup or custody. Compromising your keys can expose these copies. Corporate custody continues to require prior policy, copying on shipment and approved case for export; it does not receive unrestricted transport keys or administrative access. Managed public channels, federation and webhooks have the exceptions specified in docs/FORWARD-SECRECY.md. Call media keeps your existing keys; there is no promise in this delivery of MLS/forward secrety to the media.
Not Signal Protocol/Double Ratchet. The formats and guarantees are different. The details of migration, storage and validation are in docs/FORWARD-SECRECY.md. Integration did not undergo external cryptographic audit.
TOFU depends on the directory integrity in the first contact. A false root displayed before being fixed is not detected automatically. TLS and a reliable application distribution are required; a malicious frontend web can access data already decrypted in the browser. The server knows accounts, members, public devices, channel names, schedules and message sizes. E2EE does not hide these metadata or protect a compromised device.
Passwords use PBKDF2- It's okay.HMAC- It's okay.SHA256 with 310 A thousand iterations and individual salt. Sessions 256 bits are stored by hash. In authorized devices, the validity is renewable by 30 days, with total limit of 90 days and the applicable 2FA limits. For production are also needed HTTPS/WSS, own secrets, limits of requests/connections, provisioning/checking of accounts, retention and media testing on each platform. O Compose It's exclusive to local development.
Annexes, integrations and administration#
Files use AES-256-GCM with random key per object, random nonce of 12 bytes and AAD ["sintonia-file-v1", channelId, fileId, ownerId]. The object contains nonce, ciphertext and tag; key, name, MIME and original size are inside the encrypted message. Download requires session and participation in the channel and validates authentication and size before opening. Images have size and resolution limits; documents are downloaded. When saving, the user creates a local copy in plain sight. Native playback via media_kit can use library-run decrypted temporary file; client does not implement media encrypted persistent cache or secure deletion of local storage.
Workspaces are allowed in each access by X-Workspace-Id and actual membership/channel association. Selecting another identifier in the client does not grant permission. Approving a connection allows administrators to add participants to the channel, and existing devices distribute keys. Member removal and revocation of connections block API, but do not revoke previously received cryptographic material.
The portal operates metadata and permissions; your access does not deliver chat keys. In legacy mode saas, registrations need to confirm email before publishing a device identity. The first administrator activation requires an operational secret defined in the backend and is of single use.
Input webhooks are an explicit exception to the origin E2EE: they receive external text via TLS and encrypt to the public key of integration before storing. The server has neither the private integration key nor the channel key. Output webhooks export only metadata and encrypted envelopes, signed with HMAC, with persistent queue. Details in WEBHOOKS.md.
Optional corporate custody#
A workspace may authorise the organisation as an additional recipient. In this mode, the devices encrypt an independent copy of each message to the organization's public key X25519. Private keys and channel secrets are not delivered to backend. Mode starts disabled and doesn't matter previous history. Activation, key exchange and deactivation require two distinct administrative accounts; participants receive a warning and confirm science in each apparatus. This does not amount to consent as a legal basis.
Access to exports depends on the explicit function of custodian, case with scope and time, approval of another person and new password confirmation. The exported file remains encrypted and is opened outside the server. Administration and designation of DPO do not automatically give this function. Automatic retention applies only to corporate copies and respects approved preservations; it does not delete normal history or local copies or backups.
The server checks the presence and signature of the copies, but cannot prove that a modified client has typed the same text in all envelopes. The signatures don't replace chain of forensic custody. The administrative trail is in the bank and is not WORM; the bank operator can change it. The MFA portal, TOTP registry and revocable device trust are implemented. Integration with HSM/KMS and external immutable storage remain pending. The local tool protects the key with PEM encrypted and password. Details in Privacy and audit.
Untying, thumbnails and notices#
Untying an device requires signature of an authorized account device. backend revokes associated sessions, blocks new operations and invalidates backup if it depends on the revoked identity. The last authorized device must not be removed before binding another device. The historical chain of signatures is preserved. Keys and content already received cannot be deleted remotely, Isolated unlinking does not renew the channel key; recovery without history renews the keys of the conversations covered.
Miniatures are included in the encrypted metadata of the Annex. System notifications show author and conversation, without text of the message, and are enabled by default, respecting saved preferences, pauses and local browser/operational system permission. The center contains metadata accessible to the account and respects removal of participation when listing items. The presence reveals approximate activity status; it does not record keyboard, window content, location or application history.
Recover account and continue without history#
A native account can authorize a new device without knowing the backup password: after entering, choose Recover account without history. The user expressly confirms the unavailability of previous messages/medias, the revocation of TODOS other devices and the invalidation of the previous backup. Copies already downloaded from old devices are not deleted. Profile, functions and participation in workspaces are preserved. This flow does not bypass the second factor required to enter the account or recover exclusive IdP accounts.
The operation requires eight-digit e-mail code, valid for ten minutes, with up to five attempts and one minute interval between shipments. The code is linked to the account, session, device and purpose. Upon confirming, the server issues a single-use authorization valid for five minutes; only its hash is persisted. The new device signs the operation with its newly registered identity. The revocation, renewal of keys and invalidation of backup take place in the same transaction and generate audit. The old data is not erased from the bank or custody copies by that operation.
Each conversation receives a new generation of key, with distinct distribution context. Envelopes sent with an outdated generation are refused. Historical packages are archived per generation and can only be distributed to accounts entitled to the corresponding period. The restarted account does not receive previous generations or its attachments by the normal routes. The other participants maintain their history. Customers automatically accept the new root of a validated recovery by checking the revocation of the previous root and the advancement of the version; there is no blocking or confirmation by other participants. The server doesn't have the keys in it.
Calls from affected conversations are closed in the signage; new calls use another media room and another key. Input webhooks are disabled because the server cannot recrypt its keys to the new generation: the responsible must create new integrations. The history of webhooks remains readable for participants who own the old generations.
In the federation, the origin maintains persistent signed reminders of revocation, sent to authorized partners every five seconds and repeated after failures. Fate renews local generations, revokes identity sessions and applies the history cut. New restarted account sessions require your partner to advertise isolation support and reapply the recovery version. Old partners are refused; unavailable partners receive notice when they return. Existing external sessions already have validity of 60 seconds; there is no promise to delete received data or simultaneous revocation during a network partition.
Recovery password change: e-mail OR 2FA#
By replacing a backup, an authorized device requires specific confirmation by email or, if the user already has 2FA, an authenticator code (or a 2FA recovery code not yet used). Confirmation is linked to the purpose backup, session and device, cannot authorize restart without history and is not reusable. The email path dispenses a second confirmation TOTP in this operation, but maintains the initial login of the session and the confirmation of the login/IdP password. Create the first backup continues to require the authorized device and access confirmation; it does not replace any existing backup.
Resume session in browser#
The authenticated session is stored in the secure storage of the device, separated by installation. No login passwords, backup passwords or MFA codes are allowed. When updating/reopening the page, the client consults /api/me before resuming and continues through the device authorization lock. Expired/repealed sessions and disabled providers are refused. The validity remains server-controlled: authorized devices receive renewable window of 30 days, limited to 90 total days and 2FA confidence when used. Persisting the token on the device does not revive an expired session.
Quit deletes the local log of this session before attempting to revoke it on the server, even if the network fails. Records separated by token hash prevent the output of an old tab from erasing a newer authentication. The safe and device keys are preserved. In the browser, the protection remains that of the WebCrypto plugin bound to the origin, without promise of hardware enclave.
Login with second factor and temporary trust#
The 2FA guide describes confirmed registration, single-use recovery codes, mandatory policy and option to remember a device for configurable time (60 days by default). A remembered credentials only dispenses the factor after valid password/IdP; does not provide E2EE keys or approves a new device. The server only stores the hash of this credential and checks policy, validity and revocation. Remembered login doesn't count as recent evidence for sensitive operations.
Chat meetings and reaction metadata#
The meeting chat uses AES-256-GCM with HKDF key separated by meeting/season from the key received in the authorized ticket. The AAD links meeting, time, sender and sender identifier. The text is not clear on the server; this mode does not receive the MLS guarantee of private workspace chat. Pending, removed or expired tickets do not access API, and the history is paginated only within the current time. New shipments are locked in active custody until there is a specific corporate copy, so as not to create a policy deviation.
workspace chat reactions are persistent metadata in the service: emoji, author and link to the message are visible to the server. The contents of the message and attachments maintain their protection protocol. The summary query is batch, with the same history authorization; remove a hidden message also your reactions.
Renewable duration of the session#
backend renews sessions still valid on authorized devices, without replacing the identity or token and without asking for the password every day. The default is 30 days renewable window, with full-length 90 days; after the total limit you need to enter again. Renewal uses a six-hour window to avoid writing to each query. Sessions without authorized apparatus remain limited to initial admission of up to 24 hours. The 2FA confidence used in the login can close access before these deadlines; recent confirmations for sensitive actions remain required.
SESSION_DURATION_DAYS and SESSION_MAX_DAYS configure the installation times, with 1 <= duração <= limite total <= 365. Reducing the limit persists restriction; a subsequent increase does not revive expired sessions. These are backend values, not the five-minute servlet session used temporarily in the SSO handshake. Disabled providers, blocked accounts, logout and revoked devices continue to close access. Short federation tokens and meeting tickets are not prolonged by this renewal.
The application confirms expiration in /api/me before forgetting the login when another operation responds 401. Invalid confirmation code or unavailability should not delete the valid login. Late replies do not delete the session from another account. Migration V25 preserves credentials, identities and backups; only valid sessions can be renewed after the update.