Nyskra Knowledge / Encryption

End-to-End Encryption (E2EE)

End-to-end encryption keeps protected information readable only by its intended endpoints. Discover how E2EE works and what keeps that protection effective.

Definition

End-to-end encryption (E2EE) protects information so that only the intended communicating endpoints can decrypt its contents. Intermediary services may transmit or store the ciphertext, but should not possess the keys needed to read the protected data.

Also known as: E2EE, End-to-end encrypted communication

On this page

Imagine sending a private message to someone. Your message may pass through a service provider’s servers before reaching the other person. You need those servers to deliver it, but you do not necessarily want the provider to be able to read it.

End-to-end encryption (E2EE) separates delivering information from being allowed to decrypt it. The service can transport or store encrypted data, while the ability to read its contents stays with the intended endpoints.

This principle is useful beyond messaging. It can protect personal files synchronized between your own devices, private information shared with another person, and collaborative data accessible to a defined group.

How does end-to-end encryption work?

A typical end-to-end encrypted exchange has four basic stages:

  1. Keys are established for the intended endpoints. Each participating device needs access to the appropriate cryptographic keys. The application must also establish that those keys belong to the intended recipients.
  2. The sender encrypts the information locally. The original content becomes ciphertext before an intermediary service receives it.
  3. The service transfers or stores the ciphertext. It can perform delivery, synchronization, or storage operations without needing a key that would reveal the plaintext.
  4. An authorized endpoint decrypts the content. The recipient’s device obtains the appropriate key and verifies the encrypted data before presenting the original information.

This is a conceptual description, not a universal protocol. Different systems manage keys, device enrollment, group membership, and data updates in different ways. The strength of E2EE depends on those decisions and on their implementation.

A system can also use transport encryption, such as HTTPS, while delivering end-to-end encrypted content. These protections operate at different layers and complement each other.

What are the endpoints?

Endpoints

Definition

In end-to-end encryption, endpoints are the authorized devices or applications that encrypt or decrypt protected information. An intermediary server that merely delivers or stores ciphertext is not a decryption endpoint.

Also known as: Encryption endpoints

An endpoint is not necessarily a different person. The word identifies where protected information is encrypted or decrypted and which devices or applications are authorized to use the necessary keys.

For example, in a personal synchronization application, your laptop and phone may both be endpoints. In private messaging, the sender’s device and the recipient’s device are endpoints. In an encrypted shared collection, the authorized devices of several people may all be endpoints.

The server distributing encrypted updates between those devices does not automatically become an endpoint. If its role is limited to carrying ciphertext and it lacks the necessary decryption keys, it cannot simply open the data it delivers.

This distinction is about cryptographic access, not just the number of computers involved. A device can be part of the network without being authorized to decrypt the protected information.

Who can decrypt?

The intended recipients of E2EE are the endpoints that possess, or can securely obtain, the necessary decryption keys. That set can change according to what the application is designed to do.

  • One person, multiple devices: Your devices can be authorized to read the same encrypted information. Adding a new device requires a secure way to provide it with the right keys.
  • One person sharing with another: The recipient receives cryptographic access to the shared content. The server may help deliver encrypted material without obtaining the plaintext itself.
  • A group of authorized people: Multiple members can decrypt shared information. Membership changes require careful management of who receives which keys and when.

A user’s password and an encryption key are not necessarily the same thing. An account login might prove identity to a server, while a separate mechanism unlocks keys on the user’s device. Signing in to an account does not, by itself, demonstrate that the provider cannot decrypt the account’s data.

Recovery and backups need the same scrutiny. If a provider can independently recover the decryption key or decrypt a backup, that provider may have access to the protected information despite E2EE being used elsewhere in the system. A recovery mechanism can preserve E2EE properties, but only if the provider cannot use it to gain unauthorized decryption access.

Why recipient identity matters

Encrypting information is not sufficient if the application has been tricked into using the wrong recipient’s key.

Suppose an attacker can replace the public key that an application believes belongs to your friend. If the application blindly trusts that replacement, it might encrypt new information to the attacker’s key instead. The algorithm can be perfectly sound while the recipient is wrong.

Secure E2EE systems therefore need mechanisms to authenticate recipient keys and handle key changes. Depending on the application, these can include authenticated identity keys, verification codes, safety numbers, or other ways to detect unexpected substitutions.

This is particularly important when considering a compromised service provider. Keeping decryption keys away from a server limits what an attacker can learn from stored ciphertext, but it does not automatically stop an actively malicious server from misleading clients about recipient identities. The applicable guarantees depend on how keys and identities are verified.

E2EE compared with other forms of encryption

The term encrypted can refer to several different protections. The critical distinction is who has access to plaintext at each stage.

The distinctions are described in more detail under encryption in transit and encryption at rest.

Is E2EE the same as client-side encryption?

The concepts overlap, but they answer different questions.

Client-side encryption describes where encryption takes place: on a client device or application, before data is sent to a service. End-to-end encryption describes who is meant to have the ability to decrypt the protected content.

Client-side encryption can be a building block of E2EE. But encrypting data on a device does not automatically establish E2EE if a provider can obtain the keys or decrypt the information later. The complete key lifecycle, recipient authentication, backup design, and sharing model still matter.

For the underlying encryption concepts, see encryption and the distinction between symmetric and asymmetric encryption.

When is encryption really end-to-end?

The term end-to-end encryption is sometimes used loosely to mean that a service uses encryption somewhere in its infrastructure. But encrypted network traffic, encrypted server storage, and strong cryptographic algorithms do not, by themselves, establish who can read the protected information.

A provider-operated server can legitimately be called an endpoint of a TLS connection: it terminates that connection and can read the information carried inside it. This is different from being an authorized endpoint of an end-to-end encrypted exchange between users or among their own devices. The word end only becomes meaningful once the intended recipients and the trust boundary are clear.

This does not mean that an E2EE provider must never store key-related material. It may store public keys or encrypted copies of private keys, provided those copies cannot be unlocked by the provider independently of the authorized users. By contrast, if the provider can obtain usable decryption keys through its normal operations, administrator access, or account recovery, it cannot claim that those keys are exclusively controlled by the intended endpoints.

Key custody is not the only concern. A service that cannot directly decrypt stored data may still be able to attack future communications if it can silently substitute recipients’ public keys or compromise the software running on an endpoint. Protection against an actively malicious server therefore requires additional safeguards and explicit security assumptions, not just client-side encryption.

A trustworthy E2EE description should explain these boundaries instead of treating the label as proof of every possible privacy guarantee.

E2EE with synchronization and sharing

Encrypted messaging is the familiar example, but the same trust boundary becomes important when information remains synchronized across devices or is shared by several users.

For multi-device synchronization, the system needs to recognize authorized devices and give them access to the appropriate keys, even if they are not online simultaneously. Meanwhile, the synchronization service can coordinate encrypted updates without having to interpret the private content.

For multi-user sharing, key management becomes more complex. Different people may need access to the same data, and a group can change over time. Secure sharing must address the addition of new members, changes to access permissions, lost devices, and the removal of former members.

Revoking a person’s future access cannot erase information that person has already decrypted, copied, or retained. Depending on the design, key rotation and changes to group membership can prevent access to new information, but retroactive removal of previously disclosed knowledge is not a realistic cryptographic guarantee.

E2EE also does not automatically provide forward secrecy or post-compromise security. Those are additional properties that depend on the protocol and how encryption keys evolve over time. A system should claim them only when its design actually provides them under stated assumptions.

What does end-to-end encryption protect against?

When correctly implemented and supported by trustworthy endpoint software, authenticated key management, and uncompromised decryption keys, E2EE can make the contents of intercepted traffic or stolen server-side ciphertext unintelligible to parties who are not authorized endpoints.

But it is not a guarantee of complete privacy or immunity from cyberattacks.

  • Compromised devices: Malware, an unlocked stolen device, or malicious client software may read content where it is legitimately decrypted.
  • Compromised keys or identities: Stolen decryption keys or substituted recipient keys can defeat the intended protection.
  • Metadata exposure: E2EE does not inherently hide who uses a service, when updates are sent, message sizes, or other observable activity. What is exposed depends on the application.
  • Unprotected backups: Copies of data or keys stored outside the E2EE trust boundary may allow access through a different path.
  • Authorized recipients: Someone who can legitimately read information may also copy, export, or disclose it.
  • Service availability: An intermediary can still refuse to deliver updates, delete ciphertext, or interrupt synchronization, even when it cannot decrypt the data.

A compromised server is therefore not a single, simple security scenario. A server breach that reveals only ciphertext is different from an attacker who can impersonate recipients, manipulate key-distribution responses, or deliver malicious client updates. Evaluating the guarantees requires a clear threat model.

What to look for in an E2EE service

When a service advertises end-to-end encryption, ask:

  1. Where does encryption and decryption happen? Does the service process protected content in plaintext at any stage?
  2. Who can obtain usable decryption keys? Can the provider decrypt data through normal operation, backups, administrator access, or account recovery?
  3. How are recipients and devices authenticated? Can a server silently substitute public keys or add an unauthorized recipient?
  4. How do sharing and access revocation work? What happens when people or devices join or leave, and which previously shared information remains available?
  5. What if the service’s servers are compromised? What content and metadata would be exposed, and what could an attacker change rather than merely read?

These questions are especially relevant for services that combine synchronization, collaboration, and offline operation. Their actual security properties come from the complete architecture, not from attaching an E2EE label to a single encryption step.

End-to-end encryption and Nyskra

Nyskra uses end-to-end encryption to protect personal information during synchronization and selective sharing. All synchronized and selectively shared personal-data payloads are encrypted using XChaCha20-Poly1305, an authenticated encryption with associated data (AEAD) algorithm with 256-bit keys. It provides confidentiality and allows authorized recipients to detect tampering. Nyskra’s infrastructure delivers ciphertext without becoming a decryption endpoint.

This security boundary depends on the complete key-management design. Nyskra uses client-controlled content keys and authenticated public identities to protect access to encrypted information. Established mechanisms such as encrypted key envelopes enable a service to assist with delivering protected key material without learning the contained secrets. Authentication of the intended recipient matters just as much as confidentiality during delivery.

The benefits also have limits. A compromised or unlocked authorized device can disclose plaintext, and a service can still interrupt delivery or observe some metadata. Zero-Access Architecture and Metadata and Privacy explain the corresponding trust assumptions and residual information exposure.

People can benefit from connected personal software while retaining control over who can read their information. To explore the everyday experience, see Why Local-First Apps Just Feel Better.