Kalypto security architecture
Kalypto is an end-to-end encrypted vault app for iPhone that encrypts your photos, videos, documents and notes on your phone with keys only you hold.
By Kalypto. Last updated
Can Kalypto read my files?
No. Everything you put in Kalypto is encrypted on your phone with keys only you hold, so Kalypto and its servers can't read it.
That covers photos, videos, files and notes, and also file names, album names, photo metadata and thumbnails. If you turn on cloud sync, the server stores only encrypted data. Your master key leaves the phone only when it's wrapped by a key the server doesn't have.
How are files encrypted?
Each file is encrypted with AES-256-GCM under its own random file key. The file is split into 1 MiB chunks, and each chunk is encrypted and authenticated on its own.
- Each chunk's nonce includes the chunk number and a flag that marks the last chunk. Reordering, truncating or appending chunks makes decryption fail.
- Keys are bound to object IDs. Swapping one encrypted object for another makes decryption fail.
- File names, photo metadata (EXIF), folders and dates are encrypted together in a separate record. The file key is kept inside that record, wrapped by your master key.
- Thumbnails are encrypted too.
- Encrypted files and records are padded with Padmé, so the server sees a rounded-up size instead of the exact size.
- Every file key is random, so the same photo saved by two people produces unrelated encrypted data.
How are the keys protected?
A 256-bit master key, generated on your phone, wraps every file key. On the phone, the master key is locked by a hardware key in the Secure Enclave, combined with your PIN.
- The hardware key can't be exported from the chip. Opening the vault needs your PIN and that specific phone, so a copied vault file can't be brute-forced on another computer.
- Your PIN is run through Argon2id and combined with a response from the hardware key. Face ID and fingerprint unlock use a hardware key that answers only after the phone confirms your biometrics.
- After repeated wrong PINs, each new try waits longer, up to one hour.
- With cloud sync, the server stores your master key only in wrapped form. One copy is wrapped by a key derived from your password with Argon2id, using 64 to 256 MB of memory depending on the device and 3 passes. If you created a recovery key, a second copy is wrapped by your recovery key. The server has neither of those keys.
How can I sign in without the server learning my password?
Your phone derives a separate sign-in value from your password and sends only that. The server stores a keyed hash of it and can't derive the key that unwraps your master key.
- Signing in takes two steps. First you enter a 6-digit code sent to your email, then your password. The password must be at least 12 characters.
- Your phone runs the password through Argon2id. HKDF then derives two keys from the result under different labels. One wraps your master key. The other is the sign-in value.
- Your password never leaves your phone.
What does the server see?
The server sees encrypted objects and the records it needs to run the service, such as sizes, times and your email address. It can't see the contents, names or thumbnails of anything in your vault. What is kept and for how long is in the Privacy Policy.
If you use Kalypto only on your phone, nothing you store is sent to the server. The table below applies when cloud sync is on.
| Data | Details |
|---|---|
| Server can see | |
| Encrypted object sizes | Padded, so exact file sizes stay hidden. |
| Upload times | When each encrypted object was uploaded or changed. |
| Random IDs and version numbers | Random object IDs and the version number in each object's header. |
| Key-derivation settings | The salt and Argon2id settings your phone needs to derive your key again. |
| Storage usage | Storage used, number of objects, daily request counts, and the amount stored and downloaded each month. |
| Email address | Stored encrypted with a server key, plus an HMAC lookup value used to find your account. |
| Devices | A random device ID and when each device was registered, last used and signed out. |
| Purchases | Your plan and its status, from Apple or Google. Card details never reach Kalypto. |
| IP address | Processed by Cloudflare to deliver requests. Only a short keyed hash is kept for rate limiting, until the limit window ends. |
| Server cannot see | |
| Photos, videos, files and notes | Encrypted on your phone before upload. |
| File names and album names | Encrypted in a separate record. |
| Thumbnails | Encrypted before upload. |
| Photo metadata | EXIF data, including location, is encrypted with the file's record. |
| Password, master key and recovery key | Never sent to the server in readable form. |
| PIN | Stays on your phone. |
Kalypto contains no third-party analytics, advertising or crash-reporting SDKs. The Privacy Policy lists all data the service handles and why.
What if I forget my password?
Use your 24-word recovery key. Kalypto can't reset your password, because it never has it. Steps for a forgotten PIN are in Support.
- The recovery key is a 256-bit key written as 24 words. It unwraps a copy of your master key.
- On a new phone, you confirm your email, enter the 24 words and set a new password. All your other devices are signed out, and you get an email about the change.
- If you forget your PIN, the recovery key also reopens the vault on that phone.
- If you lose both your password and your recovery key, nobody can open your synced vault in the cloud, including Kalypto. The vault on your phone still opens with your PIN.
Where is my data stored?
On your phone, encrypted. If you turn on cloud sync, encrypted files are stored with Backblaze B2 in US West (us-west-004), for all users.
| Data | Service | Location |
|---|---|---|
| Encrypted files | Backblaze B2 | US West (us-west-004) |
| Account database | Cloudflare D1 | Western North America (primary location) |
| API | Cloudflare Workers | The Cloudflare data center nearest you |
How is the encryption tested?
The same 233 golden test vectors must pass on iOS and the host computer. An independent external audit hasn't been done yet.
- Golden test vectors (233 at present) fix the exact bytes the file format and key derivation must produce.
- Property tests run randomized cases. A file must decrypt back to the original. A one-bit change, reordered or truncated chunks, or an object swapped between files or users must fail to decrypt.
- Fuzzing feeds malformed data to the parsers that read encrypted objects.
- A TLA+ model of the vault's lock states is checked with the TLC model checker across every sequence of events within set limits. One property it checks is that every key is wiped from memory in the same step the vault locks.
- An independent audit is planned. This page will link the report when it exists.
What doesn't Kalypto protect against?
Kalypto protects your files on your phone and in the cloud with encryption. It can't protect you in the cases below.
- Someone using your phone while the vault is unlocked.
- Malware or a compromised operating system on your phone.
- The metadata the server can see, such as padded sizes, times, usage counts and your email address.
- A weak password. Someone with a copy of server data could try to guess it offline, which is why Kalypto requires at least 12 characters and uses Argon2id.
- Losing both your password and your recovery key.
How do I report a security issue?
Email security@getkalypto.com. The same contact is listed in security.txt.
Kalypto will never ask for your PIN, password or recovery key. A report doesn't need them.