Sending a secret to someone
Coming in Secret Store 1.3. It's built and arrives with the next update; the version on the App Store doesn't have it yet.
Secret Store can send one secret to someone as an encrypted file. The file is an Apple Encrypted Archive, the same format as an encrypted backup, locked with a passphrase. Send the file one way and the passphrase another, and someone who gets hold of only one of them can’t read the secret.
Sending a secret
- Choose the secret, then pick Send Secret…. It’s in the secret’s right-click menu (on iPhone and iPad, touch and hold it) and in the Secrets menu on a Mac. The Send button (a paper plane) at the top of the secret does the same.
- Choose what goes with it. The name and value always go. If the secret has a description or tags, Include description and Include tags let you leave them out. Its kind, expiry date and reminder go too.
- Pick a passphrase. Secret Store makes one from six random words, like
amber-falcon-river-lantern-maple-orbit. Copy copies it the same way a copied value is copied, hidden from clipboard history and cleared after a short time, and New Passphrase makes another. To type your own, turn on Use my own passphrase: it needs at least 32 characters, typed twice. - On a Mac, click Share… to send the file with AirDrop, Messages, Mail or another app, or Save… to save it somewhere. On iPhone and iPad, tap Share… and use the share sheet, which can also save to Files.
Secret Store asks for Touch ID, Face ID or your password before it writes the
file, every time. The file is named after the secret and ends in
.secretstore-item. Secret Store doesn’t keep a copy, and the temporary one
it makes for sharing is deleted afterwards.
Then send the passphrase a different way: say it, or send it in a different app from the file. The passphrase is shown only on the send screen, so if it’s lost, send the secret again with a new one.
Opening a secret someone sent you
Open the .secretstore-item file on a Mac, iPhone or iPad that has Secret
Store, for example by double-clicking it in Finder or tapping it in Files. If
you see a preview instead, as Messages or Mail may show, tap the Share button
and choose Secret Store. If Secret Store is locked, it waits until you unlock
it.
- Type the passphrase you were given and choose Open.
- Secret Store shows the secret’s name, and its description and tags if they were sent. The value stays hidden until the secret is saved, so you can check what it is before adding it.
- Choose Add to Secret Store.
The secret is added as a new item with its own identity, so it isn’t linked to the sender’s copy. Changing yours doesn’t change theirs. Once it’s added, you can delete the file you were sent.
If you already have a secret with the same name and tags, choose one:
- Keep both adds the sent one as a new secret with a number after its name, like Stripe key 2.
- Replace it writes the sent value, description, tags, kind, expiry date and reminder over your existing secret. If no description was sent, yours is cleared. Access for Shortcuts and scripts is turned off, because the value is now someone else’s; turn it back on if you want it.
A secret added as a new item also starts with access for Shortcuts and scripts and agents turned off, the same as any new secret.
If it doesn’t open
- “That passphrase doesn’t open this file.” Check the passphrase with the person who sent it. Hyphens count.
- “This file is damaged or incomplete…” The file didn’t arrive whole, or it isn’t a secret sent from Secret Store. Ask for it to be sent again.
- “This is a Secret Store backup, not a single secret.” Open it with Restore Secrets instead.
- “This secret is larger than Secret Store’s 128 KB limit.” Secret Store can’t hold a value that big, so it can’t be added.
Opening it without Secret Store
A sent secret isn’t tied to the app. On a Mac with macOS 12 Monterey or
later, the built-in aea and aa tools open it with the passphrase (I
tested this on macOS 27.2). In Terminal, with the file in your Downloads
folder:
mkdir -m 700 ~/sent-secret
aea decrypt -i ~/Downloads/"Stripe key.secretstore-item" \
-o ~/sent-secret/secret.aar -password-value 'the-passphrase-you-were-given'
aa extract -i ~/sent-secret/secret.aar -d ~/sent-secretThe secret is in ~/sent-secret/secretstore-item.json. That file and
secret.aar are both plain text, so delete the folder when you’re done:
rm -rf ~/sent-secretTyping the passphrase on the command line puts it in your shell history. To
avoid that, save it in a file, use -password <file> instead, and delete the
file afterwards.
Related
- Backing up and restoring
- Locking, unlocking and copying
- Organizing secrets with tags
- Syncing across your devices, for your own devices, where you don’t need to send anything