Encryption: Face ID decryption as one app-wide opt-in #239

closed cmc opened this on 2026-11-26 15:09 UTC · feature · milestone 5 Sync and files

Discussion

cmc 2026-11-26 15:09 UTC

Reported by the owner on iPhone: Decrypt used Face ID and decrypted without asking for the passphrase, for a file whose passphrase had been saved earlier.

Decided by the owner:

  • One app-wide setting, "Use Face ID to Decrypt" (Touch ID on the Mac; the device password as their fallback), off by default. It replaces the per-passphrase "Remember in the Keychain" choice.
  • Off: no passphrase is saved in the Keychain or read from it. A passphrase is typed when it's needed, kept in memory once per open file as now.
  • On: a passphrase typed for a file is saved in the Keychain, and Face ID unlocks it from then on. No typed passphrase is required before Face ID can be used.
  • The person is asked, not opted in silently: the first time a passphrase is typed while the setting is undecided, explain that Face ID can be used to decrypt any passphrases saved in their Keychain, and ask whether to enable Face ID decryption (Enable / Not Now). The same switch is in Settings, with the same explanation.
  • Turning it off removes the passphrases orgstar saved in the Keychain (confirm first, saying how many); a list in Settings shows the files with saved passphrases, with Forget.
  • Passphrases saved by earlier versions (1.2.0's Encrypt commands, and the v2 items from #153): while the setting is undecided or off they are not used; the first launch with this change asks the question above if any exist.
  • Every path that reads a stored passphrase follows the setting: Decrypt Entry and the other org-crypt commands, opening an .org.gpg file, Encrypt… on a held file, and encrypt-on-save (#153), which holds the file until the passphrase is typed when none is in memory.
  • The Developer ID build keeps its caveat (passphrases in the login keychain) beside the switch.

Platforms: iOS, Mac.

referenced in commit b50ce164c2 by cmc: Stop deleting when no passphrase is left

2026-11-26 16:13 UTC

referenced in commit 52d620b11e by cmc: Save only passphrases that open the file; late answers change nothing

2026-11-26 16:13 UTC

closed by cmc in commit 251e90e5c9: Face ID decryption as one app-wide opt-in

2026-11-26 16:13 UTC

referenced in commit 46d07d5ca9 by cmc: Roadmap status after #239 and the Developer ID profile

2026-11-26 16:36 UTC
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form