Security Whitepaper & Threat Model

Version 1.0 — June 2026 · Last reviewed June 2026

ShareMySecret protects secrets — crypto seed phrases, passwords, vital documents — by encrypting them on-device and splitting the encryption key among people you trust, so that no single person, device or failure can expose or lose them.

This document describes the cryptographic design, the threat model, and — just as importantly — what the app does not protect against.

1. Zero-knowledge by construction

2. Cryptographic design

2.1 Encryption

PropertyValue
CipherAES-256 in CBC mode
Key256-bit, generated with the platform CSPRNG (Random.secure())
IVRandom per encryption, stored alongside the ciphertext

The secret content (text and/or files) is packaged into a ZIP archive and encrypted with a fresh, random AES-256 key.

2.2 Key splitting — Shamir's Secret Sharing

The AES key is split using Shamir's Secret Sharing over GF(256):

This is the same scheme used by Trezor's Shamir Backup (SLIP-39) and enterprise key-escrow systems.

2.3 Randomness

All cryptographic material (keys, IVs, polynomial coefficients) is generated with Random.secure(), which delegates to the operating system's CSPRNG.

3. Threat model

What ShareMySecret protects against

ThreatMitigation
A single trusted person leaks their shareFewer than threshold shares reveal nothing
A share is lost or destroyedAny threshold of n shares recovers the secret
Server breach / subpoena of our infrastructureNo secret material exists server-side
Interception of one share in transitOne share is useless below the threshold
Death or incapacity of the ownerRecipients can combine their shares independently

What ShareMySecret does NOT protect against

Honesty here matters more than marketing.

4. Data handling

5. Verifiability

The cryptographic core of ShareMySecret (Shamir scheme, GF(256) arithmetic, Lagrange interpolation, AES wrapper) ships with a public test suite and is maintained in the open so its claims can be independently audited.

Found a vulnerability? Please report it responsibly: security@sharemysecret.app

Protect your first secret free →

This document is updated with every release that changes security-relevant behavior. Last reviewed: June 2026.