The only technical page of the site

Everything Layergram protects. And everything it can't protect.

Layergram protects text content before it is transmitted in the chat, using verified identities and operations performed locally on the device. This page describes the architecture, the LMF v3 format, migration, backups, and limitations. The protection does not eliminate the risks of a compromised device, of the recipient's copies, or of metadata kept by the messaging platform.

SPEC / LMF V3
X25519+ML-KEM-768

For older version users only. This guide is exclusively for those who used Layergram before August 25, 2026, in versions prior to 2.0.0 (27).

Local architecture

Layergram's identity, encryption, decryption and message history remain on the device. The app uses no accounts, central directories or its own servers to deliver messages. The chosen chat carries the protected form of the content, but it keeps its own operational context. A local architecture and the absence of Layergram servers do not make an already compromised device secure.

Identity and verification

People exchange their complete identities and verify the contact by comparing verification elements with the other party. No Layergram server establishes which key belongs to whom. This step links the imported identity to the person you intend to communicate with; simply receiving a link does not replace this mutual verification.

LMF v3 hybrid

In LMF v3, identity and conversation setup combine X25519 and ML-KEM-768, pairing a classical component with a post-quantum one. The claimed security depends on both being implemented correctly and on the complete model. This choice does not automatically protect compromised devices, recipient behavior, or metadata of the chat used for transport.

Ratchet and Forward Secrecy

The conversation state evolves over time to limit how much a later compromise can reveal of earlier history. As a result, knowing a current key does not automatically unlock the entire past. These guarantees, however, depend on the mode used, the implementation, and the state of the devices; they are not absolute protection against every compromise.

Transport formats

Layergram can carry protected content as a direct payload, a link, or a cover message. These are different containers: the link identifies Layergram, while a cover message may reduce the visual evidence of the hidden content. Technical analysis can still detect its presence. Choosing a container does not remove the metadata of the transport platform.

Chat app guides

Migration v2 → v3

Users of Layergram before August 25, 2026, in versions prior to 2.0.0 (27), must redistribute their new public identity and verify it with their contacts. The migration does not automatically preserve previous trust and sessions. The new exchange and explicit verification are part of the transition to the v3 format.

Storage and app lock

Layergram's data and state remain local and are protected by the app's model, but an unlocked, compromised, or observed device remains a risk. The app lock should be considered together with the device's security. Message encryption does not cancel what can happen while the content is being composed, opened, or shown on screen.

Screen protection

Android can block captures through system-level defenses; iOS, macOS and Windows have different capabilities and limits. An external camera remains outside the app's control. The randomized key layout in the built-in Premium keyboard can make typing patterns harder to recognize, but it does not eliminate the risk of external observation.

Premium Backups

The Premium backup uses a dedicated 24-word phrase, separate from the 24-word identity phrase. According to the platform, the backup can use iCloud, Google Drive, OneDrive or Dropbox. The provider stores encrypted data and its own operational metadata. The separation of the two phrases must also be maintained when managing recovery.

Threat model

Layergram does not protect an already compromised endpoint, the recipient's behavior, external notifications, uncontrolled clipboards, cameras, or transport metadata. Encryption covers content within the app's model. To assess a confidential exchange, you must therefore also consider the devices, the recipients, and the channel through which the message is shared.

No magic formula

LMF v3 combines classical and post-quantum primitives, progressively updates the conversation state and declares boundaries that remain outside its control.

Continue exploring

Help Layergram grow

If you find Layergram useful, a star helps more people discover the open-source project.

Star us on GitHub

Start free

Protect your first message

To start, you and the chosen person install Layergram, create your identities, exchange them, and verify them. Then you compose a message in the app and share the encrypted result in the compatible chat you already use. The recipient decrypts it on their own device. Essential protection is free and does not require a Layergram account.