Nyskra Knowledge / Secure Sharing

Secure Data Sharing

Secure data sharing lets authorized people collaborate without giving the service provider access to private content. Understand selective sharing, permissions, revocation, and group encryption keys.

Definition

Secure data sharing is the controlled exchange or joint use of information among authorized participants, with safeguards that protect confidentiality and integrity and determine who may access shared content.

Also known as: Secure sharing, Private data sharing

On this page

Personal information is often most useful when it can be shared. You might keep a private household budget with a partner, collaborate on a family plan, or give a trusted person access to selected records without sharing everything else in your account.

The challenge is to make sharing easy without making the service provider another reader of your private information.

Secure data sharing brings together several distinct concerns: deciding who is authorized, giving those people access to the information they need, protecting the shared data as it moves between devices, and responding safely when the group changes. In a privacy-first application, those decisions must also be reflected in the cryptographic keys, not merely in the server’s permissions database.

What makes sharing genuinely secure?

A system can provide a convenient Share button without making a strong privacy promise. For example, a server may check a list of authorized accounts before returning a document, while still retaining unrestricted ability to read that document itself.

That is a useful form of access control, but it is not the same as end-to-end encrypted sharing.

A stronger architecture addresses several requirements together:

  1. Selective access. People can share the intended information without exposing unrelated personal records.
  2. Authenticated participants. The system establishes which identities are allowed to receive shared content and contribute changes.
  3. Confidentiality. Private data remains encrypted for authorized readers, rather than becoming readable to the service merely because it is shared.
  4. Integrity. Unauthorized changes and forged contributions can be detected and rejected.
  5. Membership changes. Adding or removing someone has well-defined consequences for their access to encryption keys and future updates.
  6. Independent devices. Authorized participants can work on separate devices, potentially while temporarily offline, and exchange protected changes when connectivity returns.

These are related goals, but they are not interchangeable. A user interface can display correct permissions even when the server possesses all the decryption keys. Conversely, strong encryption alone does not determine which people should be allowed into a group.

Selective Data Sharing

Definition

Selective data sharing allows a person to grant access to specific information, collections, or contexts without necessarily exposing their entire account or unrelated private data.

Also known as: Selective sharing

Selective sharing begins with the idea that your personal information is not one indivisible collection. Granting someone access to a shopping list should not automatically expose your private journal, and collaborating on one household project should not imply access to unrelated projects.

The boundaries depend on the application’s data model. A system may let people share individual items, collections, groups, or other well-defined contexts. Whatever the unit of sharing is, the user should be able to understand what falls inside it and which people are authorized to access it.

In an encrypted system, this also affects how cryptographic keys are assigned and distributed. If unrelated private and shared data depend on exactly the same unrestricted decryption secret, a permission label in the interface will not create meaningful cryptographic separation.

Selective sharing therefore has two sides:

  • User-facing scope: Which information is included in the share, and which remains private?
  • Enforced scope: Which encrypted information can a recipient actually decrypt using the keys made available to them?

A recipient may also use several devices. An implementation must ensure that access reaches only that recipient’s authorized devices, rather than treating every device or server session as equally trustworthy.

Access Control

Definition

Access control is the set of rules and enforcement mechanisms that determine which authenticated identities may access resources or perform operations on them.

Also known as: Data access control

Access control turns a decision about sharing into an enforceable rule. It may distinguish, for example, between a person who can read shared information, someone who can make changes, and a group administrator who can manage membership.

An important prerequisite is authentication: the system needs a reliable way to establish which identity is making a request or creating a change. Authorization is the separate decision about what that identity may do.

Conventional server-centered applications often enforce authorization by checking permissions before their server reads or writes records. This is appropriate for many systems, but in a zero-access application the server must not be the sole enforcer of content access. Authorized clients also need to verify the origin and validity of protected changes and receive only the decryption keys appropriate to their access.

Consider a server that reports, “This group contains Alice and Bob.” The clients still need a trustworthy connection between the displayed identities and the public cryptographic keys used to provide them access. Otherwise, a malicious server could attempt to substitute a different key and silently add an unauthorized reader.

Access control therefore combines several layers: authenticated identities, application permissions, protected recipient keys, and verification of changes. A server can assist in coordinating these layers without itself becoming a trusted decryptor.

Access Revocation

Definition

Access revocation is the withdrawal of previously granted permissions or cryptographic capabilities, generally preventing a former participant from obtaining future protected content without retroactively erasing information they already received.

Also known as: Revoking access, Permission revocation

Sharing relationships can change. You may stop collaborating on a project, remove a device from your account, or remove a participant from a shared group.

In a server-managed application, revocation may start by disabling an account’s access to the server. That can prevent future downloads through the service, but it does not necessarily prevent a person who already knows the decryption key from reading future ciphertext encrypted with that same key.

For cryptographically protected sharing, revocation must therefore consider both permissions and key access. When a former member should no longer receive new protected information, authorized members need a way to transition to key material that the former member does not possess.

There is, however, an unavoidable boundary: information already revealed cannot be made unknown again. Someone may have read or copied a document, retained an authorized offline replica, or previously obtained keys to historical content. Cryptography cannot erase those memories or copies simply because membership changes later.

Offline operation adds another practical consideration. A disconnected device might not immediately learn that group membership changed. Secure systems must define how membership changes and new key epochs become authoritative, and how devices respond when they reconnect with an outdated view.

Encrypted Collaboration

Definition

Encrypted collaboration enables authorized participants to work with shared information while protecting the shared content cryptographically from unauthorized parties, including service intermediaries that do not hold its decryption keys.

Also known as: End-to-end encrypted collaboration

Secure sharing is not limited to giving someone a static copy. In collaboration, multiple participants may read and change the same shared information over time.

Imagine two family members updating a shared plan on different phones. One changes an entry while offline; the other adds information on another device. Each should be able to work independently and later receive the authorized changes made by the other.

With E2EE, the service can deliver encrypted updates without reading their contents. That is an important benefit, but it also changes the synchronization architecture: a server without the keys cannot perform ordinary content-aware conflict resolution by examining plaintext records. Interpretation and reconciliation of protected changes must take place where those changes can be decrypted, typically on the authorized devices.

This connects encrypted collaboration to local-first software and data synchronization. Devices maintain usable local state, exchange updates when possible, and resolve conflicts according to the application’s data model rather than delegating every private decision to a server.

Confidentiality is only part of this problem. Receiving a decryptable update is not enough to prove it was submitted by an authorized group member. Secure collaboration also requires authenticated changes, suitable replay and ordering protections, and rules for applying updates from potentially outdated replicas.

The goal is a shared experience that remains usable without turning the synchronization server into an additional group participant with access to the plaintext.

Group Key Management

Definition

Group key management is the creation, protection, distribution, and lifecycle management of cryptographic keys that allow authorized members of a group to access encrypted shared data.

Also known as: Group encryption key management

When a collection of people shares encrypted data, each authorized participant needs access to the cryptographic material required to decrypt the group’s protected content. The service provider, other users, and removed members must not automatically acquire the same ability.

Group key management solves this as an ongoing process rather than a one-time exchange. It must account for such questions as:

  • How is a group initialized with protected key material?
  • How are recipients authenticated before being given access?
  • How do additional authorized devices acquire the keys they need?
  • What happens when someone joins, leaves, or loses a device?
  • How are keys updated without exposing the new secrets to excluded participants?

One common technique is to protect a symmetric content key separately for each authorized recipient. The service may store encrypted recipient key envelopes, allowing recipients to recover group key material with their own private keys. Storing these envelopes does not require the service to possess the plaintext group key.

However, encryption for a public recipient key is not enough on its own. The sender must also know whose key it is. Otherwise, a compromised key directory or malicious intermediary could attempt to replace a recipient’s public key with an attacker-controlled one.

This is why key establishment, authenticated identities, and cryptographic key management are integral to zero-access group sharing.

Group Key Rotation

Definition

Group key rotation replaces or advances the cryptographic key material used to protect a group's data, allowing future content to be protected under keys intended for the group's currently authorized members.

Also known as: Group encryption key rotation

A group does not necessarily have the same members forever. When access changes, continuing to protect new information with a key known to an excluded member would defeat the intended revocation.

Group key rotation replaces the relevant group secret with fresh key material and makes that material available to the members authorized for the new group state. Systems may organize this lifecycle into group key epochs, each with a defined set of keys and authorized recipients.

For a rotation to achieve its purpose, several things need to hold:

  1. New key material: A former member must not be able to derive the new group secret from the old one or from server-held information.
  2. Authenticated recipients: The fresh key material must reach the intended members rather than attacker-substituted identities.
  3. Consistent transition: Devices must distinguish current protected updates from updates produced under superseded group state.
  4. Reliable synchronization: Authorized devices that were offline must have a secure way to learn about the new state when they return.

Rotation does not automatically settle how much historical information newly added members are allowed to see. That is a separate sharing policy and key-history design decision. Nor does it erase knowledge or copies retained by a removed member.

How can a server coordinate groups without reading their data?

A server can remain useful even when it cannot decrypt shared content. For example, it can help coordinate invitations, membership status, encrypted key-envelope delivery, synchronization order, and storage of encrypted updates.

What it should not need is the ability to reconstruct the private data being shared.

In a zero-access sharing architecture, authorized clients handle the sensitive operations: validating trusted identities, obtaining usable group secrets, encrypting changes, verifying protected updates, and interpreting application data. The service can coordinate ciphertext delivery and enforce operational rules without acting as a content reader.

There is a distinction between content confidentiality and operational visibility. Depending on the design, a service may still need information about accounts, group membership, transfer sizes, timestamps, or routing. Protecting the payload does not automatically make every aspect of group activity invisible. See our discussion of Metadata and Privacy.

Secure data sharing and Nyskra

Nyskra Share lets people share selected private information with people they choose. All shared personal-data payloads are protected using XChaCha20-Poly1305, an authenticated encryption with associated data (AEAD) algorithm with 256-bit keys. Combined with Nyskra’s zero-access architecture, this provides end-to-end encryption without making the provider another reader of the protected content.

Secure sharing depends on sound key management and authenticated recipients, not merely on encrypting data in transit. Nyskra uses established cryptographic mechanisms to protect key material and to keep private content accessible only to authorized participants under the system’s stated trust assumptions. The general cryptographic principles, including key envelopes and rotation, are explained elsewhere in this Knowledge Base.

Revocation controls future access to protected information; a recipient may retain anything they previously decrypted or copied. Endpoint security and operational metadata are additional parts of the privacy model. See Access Revocation and Metadata and Privacy for those distinctions.

The benefit is selective sharing without turning private personal information into provider-readable cloud data.

What should you look for in a secure-sharing service?

When a provider advertises private or encrypted sharing, useful questions include:

  • Who actually holds the decryption keys? Can the provider access shared plaintext, or only the intended participants?
  • How are recipients authenticated? Can a server silently substitute a different public key or add an unauthorized reader?
  • What does removing a member do? Does it only change a permissions list, or does it also change the keys protecting future content?
  • What can a former member retain? Are the limits of access revocation explained clearly?
  • What happens while devices are offline? How are new membership states and protected updates validated after reconnection?
  • Which metadata remains visible? Is the provider clear about information it needs to coordinate group operations?

Clear answers are more useful than broad claims that a sharing feature is “secure” without describing the guarantees behind it.

Further reading

For the cryptographic foundations, see End-to-End Encryption, Zero-Access in Shared Groups, Key Establishment, and Key Rotation. Multi-User Synchronization connects sharing with the coordination of independently working devices, while Access Revocation describes the limits of withdrawing access after information has already been received.

For general cryptographic guidance, NIST SP 800-57 Part 1 describes key lifecycles, including creation, distribution, storage, and retirement.