Security
What happens to a file you add, every key and where it is kept, what leaves your device, who could try to get in, and what Secrates cannot do.
The short version
- Everything is encrypted on your device before it reaches iCloud: contents, file names, thumbnails and the words the app reads in your photos.
- The app talks to no server of ours and needs no account, except the Privacy Policy link, which opens secrates.app in your browser when you tap it. We hold no copy of any key, so we cannot open your vault, and an order served on us would find no key and no vault data. We would hold only emails you send to support and crash logs Apple passes on if you allow it; none of them contain vault data. Cloudflare, which serves this website, processes visitors' IP addresses and request data under its own policy; we do not keep website logs.
- The app contains no analytics, ads or crash-reporting code. If you allow it in iOS Settings, Apple may share anonymous crash logs with us.
- Your passphrase is the lock. Every guess costs 600,000 rounds of PBKDF2, but only a long passphrase makes that count.
- Lose your passphrase and your 24 words, and once no device can open it with Face ID or a PIN, the vault is gone. We cannot help you get in. If you are a member of a family vault, the owner can let you in again. An owner who loses both is locked out, even though the members can still open the vault.
What happens to a file you add.
Four steps, all on your device, before anything reaches iCloud. The names and numbers beside each step are the ones in the app's code, so anyone who knows the field can check them.
-
The file gets a key of its own
A new random key for every file. The file is sealed in 1 MB pieces, and each piece carries its number and the total, so pieces cannot be swapped, reordered or cut off without the app noticing.
- Cipher
- AES-256-GCM, Apple CryptoKit
- File key
- 256 bits, random, one per file
- Piece
- 1,048,576 bytes
- Nonce
- 96 bits: 4 random bytes, then the piece number
- Checked
- piece number and total, under the GCM tag
-
The key goes into the sealed index
The file keys, the file names, the words found in your photos and the list of pieces live in the vault's index. The index is sealed too, with a key made from the vault's master key.
- Index
- AES-256-GCM
- Index key
- HKDF-SHA256 from the master key
- Master key
- 256 bits, random, made on the device
-
The master key is sealed twice
Once with a key made from your passphrase, once with your 24-word recovery phrase. Either one opens the vault on any device. Face ID, the PIN and the pattern only release a copy of the passphrase key kept on that one device. We hold no copy.
- Seal 1
- passphrase, PBKDF2-HMAC-SHA512, 600,000 rounds, 32-byte salt
- Seal 2
- 24 BIP-39 words, a 256-bit recovery key
- Each guess
- costs all 600,000 rounds, on any computer
-
Only sealed pieces leave the device
What reaches your iCloud Drive is ciphertext under random names. Apple stores it. Neither Apple nor we hold a key to read it, and there is no server of ours in between. The app's one link to us is the Privacy Policy link, which opens secrates.app in your browser when you tap it.
- In iCloud
- sealed pieces, one sealed log and snapshot per device, one key file per vault
- Piece names
- 32 random hex characters
- Account
- none
Every key, and where it lives.
Your passphrase and seven kinds of key. None of them ever reaches us, and the vault's keys leave your device only sealed. Files and the index use AES-256-GCM; letting family members in and the share extension's drops use HPKE with ChaChaPoly.
| Key | Made from | Where it is kept |
|---|---|---|
| Your passphrase | You. At least 8 characters; longer is better. | Nowhere. The app never stores it. |
| Passphrase key | PBKDF2-HMAC-SHA512 over your passphrase, 600,000 rounds, 32-byte salt; then HKDF-SHA256 with the vault's ID, so one vault's key never opens another. | Made again each time you type the passphrase. A copy stays in this device's Keychain only if you turn on quick unlock. |
| Master key | 256 random bits, made on the device when you create the vault. | In iCloud, sealed twice: by the passphrase key and by the recovery key. In a family vault, also sealed by each member's own passphrase. |
| Recovery key | 256 random bits, shown as 24 BIP-39 words with an 8-bit checksum. | On your paper. Also sealed by the master key in iCloud, so the app can show the words again while the vault is open. |
| Index key | HKDF-SHA256 from the master key. | Nowhere. Made again each time the vault opens. |
| File key | 256 random bits, a new one for every file and every thumbnail. | Inside the sealed index. |
| Inbox key | An X25519 key pair, HKDF-SHA256 from the master key. | The public half in the App Group, so the share extension can seal what you send to Secrates from other apps while the vault is locked. The private half is made again each time the vault opens. |
| Member key Family vaults only, with Pro | An X25519 key pair, one per person. | The private half in your iCloud Keychain, for your other devices. The owner seals the vault's master key to the public half with HPKE. |
Why 600,000 rounds
OWASP's Password Storage Cheat Sheet asks for 210,000 rounds of PBKDF2-HMAC-SHA512; Secrates uses 600,000. Rounds make each guess slow. They do not make a short passphrase long: one that falls in a few thousand guesses is weak at any round count.
Why the 24 words get no rounds
The words are not a password. They are the 256-bit recovery key itself, written as words, so guessing them means guessing an AES-256 key.
One salt for all your vaults
Your vaults share one random salt, so an unlock runs PBKDF2 once and tries the result on each vault. It also means someone testing a guess against your iCloud folder tests it on all your vaults at once.
The passphrase makes the key. Quick unlock stays on this device.
Type the passphrase once. After that, open the vault on this device with your face, a finger, six digits or a pattern you draw.
Passphrase
Makes the key that encrypts your vault. It opens the vault on any device, and Prove My Backup asks for it. Give each vault its own passphrase: if two share one, the passphrase opens only one of them. The other then opens only with its 24 words or a Face ID or PIN set up for it on this device, and Prove My Backup and Travel Mode cannot use the passphrase for it.
Quick unlock
A copy of that key in this device’s Keychain, behind Face ID or Touch ID (Apple Watch too on a Mac), a 6-digit PIN or a pattern on a 5 × 5 grid. It never leaves the device. If the enrolled faces or fingers change, Face ID unlock is removed and the passphrase is asked for again.
- Keychain
- this device only: the copy never moves to another device, not even in a backup, and cannot be read while the device is locked
- Face ID
- bound to the faces and fingers enrolled when you turned it on
- PIN, pattern
- the Keychain item's own password: without it the copy cannot be decrypted
- Lock after
- immediately, 1 minute (the default), 5 or 15 minutes away from the app. On iPhone and iPad the vault shows locked when you come back to Secrates; its keys stay in the app's memory until then
- On a Mac
- also locks when the screen locks, the Mac sleeps or the last window closes
Draw a pattern
Drag from one corner straight to the opposite one: the line takes every dot it crosses, as in the app, so a pattern is the same however fast you draw it. Nothing you draw here leaves this page.
With a keyboard: arrow keys move, Space takes a dot, Escape clears.
Wrong PIN or pattern
- Try 1 Try again
- Try 2 Try again
- Try 3 Wait 30 seconds
- Try 4 Wait 5 minutes
- Try 5 PIN or pattern removed
Secrates allows five tries in the app. After the fifth wrong try the PIN or pattern is wiped from this device. Face ID, if you turned it on, the passphrase or the 24 words still open the vault. The count is kept in the Keychain, so deleting and reinstalling the app does not reset it. A tool that breaks into an unlocked phone can get around the app's count, so a 6-digit PIN or a pattern protects less than the passphrase.
24 words, on paper
When you make a vault the app shows 24 words and asks for three of them back before the vault opens. They open it if you forget the passphrase. Write them down, do not take a screenshot, and test them any time.
256-bit key, BIP-39 English word list
What leaves your device.
Four places, all Apple's. Nothing goes to us. Plus anything you export or share yourself, which leaves as a normal, unencrypted file, and your device backup if iCloud Drive is off: then the vault stays on the device, sealed, and only that backup protects it.
-
Your iCloud Drive
While iCloud is on
The sealed pieces under random names, the index as one sealed log and snapshot per device, and one key file per vault: its salt and round count in the clear, the master key sealed twice, the recovery key sealed once.
Text in your photos and documents is read on the device. It leaves only inside the sealed index, like the file names.
Anyone holding these files can see how many there are, their sizes, when they were written, how many vaults you have, how many devices use each vault and when each last wrote.
-
Apple CloudKit
Only for family vaults, with Pro
The shared vault's sealed records, each member's public key, the vault's master key sealed to each member, and each member's own key file: salt, round count, and the master key sealed by that member's passphrase. An invitation alone opens nothing: the owner's device lets each person in.
Apple's sharing record shows which Apple Accounts take part, and their roles.
Removing someone ends their access through iCloud sharing. What their devices already hold stays with them, and they keep the vault's key. Files added later stay readable to them if they ever get the encrypted files again. To shut them out fully, move the files into a new vault.
-
Your iCloud Keychain
Only for family vaults, with Pro
Your member key, the private half, so your other devices can join the family vaults you are in. Apple's iCloud Keychain encrypts it end to end.
With your member key and your place in the share, a device can open the vault without your passphrase.
-
The App Store
When you buy a plan
Your purchase, handled by Apple's StoreKit. We never see your name, your Apple Account or your payment details.
The app contains no analytics, crash-reporting or ad code. If you turn on Share with App Developers in iOS Settings, Apple may pass anonymous crash logs to us; that is Apple's setting, not the app's. Its one outside library is ZIPFoundation, for zip files. The encryption is Apple's own CryptoKit and CommonCrypto.
Who could try, and what they get.
Seven people a vault has to stand up to, from the likely to the rare. Where Secrates cannot stop someone, the row says so.
| Who | What they get | What stops them |
|---|---|---|
| Someone you hand your unlocked phone to | Nothing from a locked vault. The app switcher shows a cover, not your files. | The lock, and the time you set under Lock After. With Immediately, the vault shows locked the moment you come back to Secrates. Its keys stay in the app's memory until then. |
| Someone who takes your locked phone | Nothing until they get past the phone's own passcode. Then five tries in the app at your PIN or pattern, after which the PIN or pattern is wiped. A tool that breaks into an unlocked phone can get around the app's count, so a 6-digit PIN or a pattern protects less than the passphrase. If the vault was open less than your Lock After time ago (1 minute by default), unlocking the phone shows it open. If Secrates was left with the vault open, its keys are still in the app's memory, where a tool that breaks into a locked phone could find them. | The quick-unlock copy cannot be read while the phone is locked, and Face ID needs your face. With Lock After set to Immediately, the vault shows locked when they open Secrates, though its keys stay in the app's memory until then. See A lost or stolen phone. |
| Someone with your iCloud files | Ciphertext, file sizes and times, the number of vaults, and the salt they need to test passphrases on their own computers. | Your passphrase alone. Each guess costs 600,000 rounds; a long passphrase is what makes that enough. A family vault also opens with a member's member key, kept in their iCloud Keychain, so it is only as strong as each member's passphrase and Apple Account. |
| Someone who makes you open it | The vault you open. Secrates has no decoy vault and no duress code. | Only what you do before: with Pro, keep other vaults under their own passphrases, and Travel Mode takes a vault off the device for a trip. Travel Mode needs iCloud Drive and a passing Prove My Backup from the last 10 minutes. See Crossing a border with your phone. |
| Malware on a jailbroken or hacked device | While the vault is open, its keys and files are in the app's memory, where a compromised system can read them. | Nothing in Secrates. It relies on iOS keeping apps apart, as every app does. Keep the device up to date and do not jailbreak it. |
| Apple, or an order served on Apple | The same as someone with your iCloud files: sealed files, their sizes and times. For a family vault, Apple also knows which Apple Accounts share it. | Apple never receives your passphrase, your 24 words or your vault's keys. |
| Us, Infinity Systems LLC, or an order served on us | No key and no vault data. The app talks to no server of ours and has no accounts. We would hold only emails you sent to support and crash logs Apple passes on if you allow it; none of them contain vault data. Cloudflare, which serves this website, processes visitors' IP addresses and request data under its own policy; we do not keep website logs. | The design. We cannot open, reset or recover a vault, yours or anyone's. |
Limits, and what Secrates leaves out.
Some of these hold for every vault app. Others are choices Secrates makes. Better you read them here than find them later.
Lose both, lose the vault
If you lose your passphrase and your recovery phrase, and no device can still open the vault with Face ID or a PIN, the vault is gone, and we cannot help you get in. Any vault that keeps no key on a server works this way. If you are a member of a family vault, the owner can let you in again. An owner who loses both is locked out, even though the members can still open the vault. Write the 24 words on paper, and test them from the app any time.
Limits every vault shares
-
Screenshots cannot be blocked
Not on iPhone, iPad or Mac. Secrates covers the screen when it leaves the foreground and locks after the time you choose, but anything on screen can be captured.
-
Sizes, dates and counts still show
Someone with your iCloud files can count the pieces, your vaults and the devices that write to each, and see when they were written, so they can guess how much you keep. Names, contents and thumbnails stay sealed.
-
An open vault trusts the device
While the vault is open, its keys are in the app's memory, and a device taken over by malware can read them. Lock the vault when you put the device down.
What Secrates chooses not to do
-
No decoy vaults, no fake calculator
Some vault apps hide behind a calculator or open a decoy under a second code. Secrates does neither. The app shows no list of vaults, and with Pro a second vault is a real vault with its own passphrase.
No outside audit yet
No independent firm has reviewed Secrates, and the app's code is not public. This page describes the app's code as of the date above, before release, and links each standard it uses below. We will check it again against the release build at launch.
Check it yourself.
The standards Secrates is built on, from the bodies that publish them. For a question this page does not answer, write to support@secrates.app.
- FIPS 197AES, the cipher
- NIST SP 800-38DGCM, the mode that seals and checks each piece
- NIST SP 800-132PBKDF2, for the passphrase key
- RFC 5869HKDF, for the per-vault and index keys
- RFC 9180HPKE, for letting family members in
- BIP-39the 24-word list
- OWASP Password Storagehow many PBKDF2 rounds to use
- Apple Platform SecurityKeychain data protection, where quick unlock is kept
See also the Privacy Policy, and Prove My Backup, which downloads and decrypts every file in the vault (not the Trash) to show that your backup opens.