MyGlimpse Source

[ security ] how it is built

What protects your vault, and what doesn't.

This page is the detail behind the plain-language pages: what encrypts what, where keys are kept, what leaves the device, and where the protection stops. It describes the code, so it also names the parts that are not guarantees. If you find something wrong here, open an issue. If it is a vulnerability, please report it privately instead.

a padlock icon is not a security model.

[ 01 ] storage and keys

What is encrypted, and with what.

A random 256-bit master key is generated on the device when the vault is created. It is not derived from your face, fingerprint, or passphrase. Separate keys for the database and for field values are derived from it using HMAC-SHA256 with distinct purpose labels.

MyGlimpse · encryption at rest

Field values
XChaCha20-Poly1305 for new writes, applied per field, with record, version, and field context bound in as associated data. Fields written by older versions use AES-GCM and are migrated as they are rewritten.
Database file
SQLCipher (AES-256). Names, categories, and other metadata are inside the encrypted database, not only the values.
Master key at rest
Wrapped with an AES-GCM key-encryption key held by the platform's key store. Never written to disk unwrapped.
Passphrase wrapping
Argon2id, 64 MiB, t=3, p=4, when you set an unlock passphrase.
Backup files
Current format: a random 256-bit file key encrypts the backup in XChaCha20-Poly1305 frames. Each frame is bound to its position in the file, so a backup with frames removed, reordered, or cut short is refused. The file key is wrapped with AES-GCM under a key derived from your backup password using Argon2id (64 MiB, t=3, p=4). There is no limit on a backup's size. Older backup formats are still accepted so existing files open; the oldest of them do not authenticate every metadata field.
Sync
None. The app does not copy your vault to a server.
Analytics
None in the app. This website runs no tracking script; it counts visits from its own server log, with IP addresses shortened (see the privacy page).

Read it: crypto_service.dart

[ 02 ] unlocking

Platform-protected key storage, unlocked the way your phone allows.

The key that unwraps your master key is kept by the operating system's own key store — the Android Keystore or the iOS Keychain — as an item that requires authentication to use. Depending on the device, that authentication is a fingerprint, a face, a device passcode, or the passphrase you set in the app. Which of those are offered is decided by the phone and by what you enabled, not by us.

There are limits to this protection. A device reporting that authentication is available is not proof that the key material is held in dedicated secure hardware such as StrongBox or a Secure Enclave; where an item actually lives is the platform's decision. And when the platform key store cannot be used, the app falls back to encrypted storage provided by the OS rather than refusing to run — protected, but not the hardware-backed path.

Some platform protections are also tied to your current enrolled biometrics: changing them can invalidate the stored item. That is another reason the backup file, with its own password, is the thing that actually gets a vault back.

The app locks itself when it goes to the background, and a value copied to the clipboard is cleared by a timer inside the app shortly afterwards. That timer is the app's own housekeeping, not a guarantee from the operating system about every clipboard copy.

[ 03 ] sharing

Two different paths leave the phone.

An encrypted link
The value is encrypted on your phone with a fresh random AES-GCM key. Only the ciphertext goes to the relay; the key travels in the link's #fragment, which browsers do not send to servers. The relay allows one retrieval by default and drops anything unopened within 24 hours.
A photo through the share sheet
A different path: the picture is decrypted and handed to the app you pick, in the clear, through your phone's normal share menu. Useful, but it is a readable copy, and what happens to it next is that app's business.

Two things about links are worth stating plainly. The complete link is the secret: anyone who has it can retrieve and decrypt the value, so send it through a channel you trust. And a recipient who opens it in a browser runs JavaScript served by the relay — that script is what reads the fragment, so a relay serving altered code could capture the key. Encryption protects what the relay stores; it does not make a compromised web client harmless. Opening the link in the app avoids that particular dependency, and you can point the app at a relay you run yourself.

[ 04 ] limits

What this does not protect you from.

The design aims at two things: someone getting hold of the files on a locked device, and casual disclosure while you are using the app. Outside that, be clear-eyed.

A revealed value is out
Once a value is on screen it can be read, photographed, or remembered. The countdown shortens the window; it cannot take a secret back.
Copies have their own lifetimes
The app wipes the byte buffers it owns when a reveal ends. Decoded text, form fields, rendered pixels, clipboard contents, and copies held by the operating system or another app are not the app's to erase.
A compromised phone
If the device you are holding is unlocked and compromised, an app vault on it is readable too. Nothing here defends against that.
Recipients
Anything you share can be saved by the person you share it with. Burning a link removes the copy on the relay, not the one in their head or their screenshot.
Backup passwords
There is no recovery path for a lost backup password. That is the cost of us never holding it.

the honest list is more useful than a longer promise.

[ 05 ] reporting a problem

Found a vulnerability? Email, please.

Send security problems to nikola@converge.hr, not to the public issue tracker. This covers the app, the share relay, and this website.

What helps
What an attacker could do and what they need first: access to an unlocked or locked phone, a copy of the app's files, a backup file, a position on the network, or control of the relay. The platform and app version, or the commit you read. Steps to reproduce, or the file and line you mean. And whether you want to be credited, and under which name.
What to expect
An acknowledgement within 3 working days, and an assessment within 10 that says whether the problem is confirmed and how it will be handled. You will hear before anything is published, and you are credited if you want to be. This is a one-person project, so these are honest targets rather than contractual ones.

The same policy is in the repository as SECURITY.md, and the contact is published in security.txt.

[ 06 ] the source

Read it yourself.

The app and relay source code are available below, including the code for encryption, sharing, and backups.