Michael Lynn

November 30, 2026 · Michael Lynn

Latch: Touch ID for Any App on Your Mac

A menu bar app that puts a Touch ID, iPhone or PIN lock on any Mac app you choose. It can photograph whoever gets the PIN wrong, tell your phone about it, and keep a log that shows when someone has edited it.

The Latch app icon: two overlapping green app tiles on near-black, the front one with a padlock

Latch: Touch ID for Any App on Your Mac

Platform: macOS 13 or later, with an iPhone companion for iOS 17 or later · Status: working build, not released for download yet
An iPhone will let you put Face ID on a single app. macOS has no built-in version of that. Once your Mac is unlocked, so is everything on it, and if someone borrows it to look something up they're one click from your messages. Latch is a small menu bar app that fills that in. You pick the apps, and opening one of them asks for Touch ID, a PIN or your iPhone first.
The Latch prompt in the middle of a darkened, blurred screen: "Notes" is locked by Latch, with a PIN field and buttons for Unlock, Use Touch ID, Use iPhone and Cancel
By default it asks once per session. Unlock Notes in the morning and it stays unlocked until you quit it, or the Mac locks, sleeps, switches user or starts the screen saver. Leaving in any of those ways also hides every protected app, so nothing is sitting there readable when the screen comes back. If that's too relaxed you can set a timeout from a minute to four hours, or have it ask every time you switch back.

Hiding an app that doesn't want to be hidden

The core of Latch is simple to describe. It watches for a protected app coming to the front, hides it, and puts up a prompt laid out like one of macOS's own permission dialogs.
The first version hid the app once, and that wasn't enough. An app that's still launching can obey the request to hide and then show its windows anyway, so the PIN prompt would be up with the thing it was protecting readable right behind it. Now Latch keeps checking ten times a second while the prompt is up, and for ten seconds after the last time it had to hide the app. If an app is still visible after ten checks and you've granted Accessibility access, Latch minimizes its windows too, and remembers which ones so that unlocking puts back only those.
That still left a flash of a fraction of a second at launch. So there's also a cover, one frosted window per display, that goes up before anything else does. Blur alone turned out to leave large text and shapes recognizable, so it's blurred and then tinted 80% dark. It leaves the Dock and menu bar usable, because you should always be able to give up and go to another app.

Unlocking from an iPhone

Latch has an iPhone app called Latch Remote. Choose Use iPhone in the prompt and the Mac shows a QR code. Scan it, look at the phone, and the app opens on the Mac.
Two Latch prompts side by side: the PIN version with its four buttons, and the iPhone version showing a QR code to scan with Latch Remote
I didn't want a server or an account for this, so the two devices talk over the local network, and the Mac only listens while a code is on screen. Each code works once, for 60 seconds, for one app. The Mac signs it, so the phone refuses a code that's been forged or changed to name a different app. The phone answers with a signature from a key that lives in its Secure Enclave and needs Face ID for every use. The iPhone passcode won't do, and if someone enrolls a new face the key stops working and you have to pair again.
Pairing is the moment that needed the most care, since whoever adds a phone can unlock everything with it. It asks for your PIN, and the pairing code carries a one-time secret that authenticates the phone's public key, so nothing on the network can swap in a different one. The Mac even advertises itself under a random Bonjour name that says nothing about whose it is.
One limit I can't engineer away is that being on the same network doesn't prove your phone is next to your Mac. The confirmation on the phone says to continue only if you're at that Mac, which is as far as I could take it.

When someone gets it wrong

After two failed attempts in a row Latch can take a photo with the Mac's camera and save it in a folder only your account can read. A rejected fingerprint counts as an attempt. Five wrong PINs lock the PIN field for 30 seconds. You can have it take a photo every time a locked app is opened instead, though that one includes you and the pictures add up.
It isn't a hidden camera. The green light comes on for a second or two, and no app can turn that off. Check the rules where you live before you photograph people, too.
It can also alert your iPhone, with the photo if there is one. Alerts travel through your own private iCloud database, so the phone can be anywhere and I never see any of it. If the Mac is offline they wait on disk and go out later, which does mean that someone who turns off Wi-Fi first has bought themselves some time.

A log that shows when it's been edited

The activity log records every unlock and how it was done, every wrong PIN (never what was typed), photos, setting changes, and when Latch started, quit, or was killed. You need the PIN to open it.
The Activity Log with sample entries: unlocks, two wrong PINs for Messages in red, an alert sent, and a bar at the top saying no entry has been changed or removed outside Latch
A log in a file on the same Mac is only worth something if you'd notice someone deleting a line. Each entry is chained to the one before it with a keyed hash, and both the key and the position of the last entry are kept in the Keychain. Change an entry, remove one, add one or reorder them, and a red bar tells you where the trouble starts. Keeping the last position is there because a chain alone can't tell you that somebody cut off its end.
The same log after tampering, with a red bar: "The log was changed outside Latch. Entries from number 9 on cannot be trusted."
It makes tampering evident without making it impossible. Someone with your login password who also deletes the Keychain item can start a fresh, empty log.

What it isn't

There's a line at the bottom of the Settings window that says Latch is a deterrent, not security. I'd rather say that in the app than let someone find it out.
The Latch Settings window: changing the PIN, when to ask again, Touch ID, the screen cover, requiring the PIN to quit, when to take a photo, iPhone alerts and restarting if killed
Latch doesn't encrypt anything. If someone quits it, they're past it, so quitting can require the PIN, and there's an option to have launchd bring it back with everything locked if it's force quit or crashes. That closes the Activity Monitor route to within about ten seconds. Someone who deletes the app, or turns it off under Login Items, still gets through. A four-digit PIN can be guessed eventually, even though it's stored as a salted hash stretched over 100,000 rounds. FileVault and a decent account password are what protect your files. Latch is for the friend, kid or coworker at your unlocked keyboard.

How it's built

It's Swift with no third-party dependencies, about 4,900 lines across the Mac and iPhone apps. The prompt is AppKit and the settings and log are SwiftUI. The message format between the phone and the Mac is one file compiled into both apps, so they can't drift apart. There are a little over 60 unit tests, mostly on the parts where being slightly wrong would matter: the phone protocol, the log chain, counting failures and when sessions end.
The first commit was at 5:26 this morning, November 30. iPhone unlock went in an hour later, the hiding fix about twenty minutes after that, and the log just before 8:00. Claude is a co-author on every one of those commits.
Latch can't go in the App Store, because a sandboxed app isn't allowed to hide other apps. The Mac build is signed and notarized with Developer ID. There's no public download yet. If you'd like to try it, get in touch.