Skip to content

App Lock

When the secrets vault may be used. The unlock method itself (Touch ID on macOS, Windows Hello on Windows, or the authenticator app) is chosen at the first launch. Background: Security model. Step by step: Set up the app lock; messages and fixes: App lock and the vault.

Automatic Lock

Saved in settings.json, object security. Applied to the running app on Apply / OK; a running unlock gets the new length at once.

Field Default Range What it does
Unlock lasts 60 minutes 1–1440 Time from an unlock to the next automatic lock (sessionMinutes).
Lock after inactivity 0 (off) 0–1440 Locks after this many minutes without key press, mouse click, mouse movement or scroll in any KryoDesk window (idleMinutes). Checked every 15 s, so the lock can come up to 15 s late.
Lock on sleep, closed lid, display sleep and screen lock On lockOnSleep. macOS: system sleep, display sleep (also a closed lid), screen lock (com.apple.screenIsLocked) and a switch to another macOS user. Windows: suspend, display off, closed lid (power notifications), and a locked, disconnected or switched session (WTSRegisterSessionNotification).

Values outside the range are clamped on save. Debug builds (pnpm tauri dev) have no app lock unless started with the environment variable KRYODESK_APP_LOCK set.

Two-Factor Unlock

An authenticator app code (TOTP, RFC 6238: HMAC-SHA1, 6 digits, 30 s, one step of clock drift accepted either way) after Touch ID or Windows Hello, or as the only unlock step. Stored in the vault, not in settings.json:

Vault entry Content
app-lock:totp The TOTP secret (Base32). Its presence turns the code on.
app-lock:totp-recovery SHA-256 digests of the unused recovery codes (the codes themselves are not stored).
app-lock:totp-step Time step of the last accepted code: a code works once, also across restarts.
app-lock:method system (Touch ID or Windows Hello first) or authenticator (code only).

The section shows one of these states:

Off. Set up authenticator… shows a QR code, Account (KryoDesk: <user>@<computer>) and Secret (manual entry). Type the current code and click Turn on (Enter works too) within 15 minutes; Cancel drops the new secret. KryoDesk then shows 10 recovery codes once, with Copy and Done. Each recovery code unlocks once in place of a code.

On (Touch ID or Windows Hello, then a code). The text shows how many recovery codes are left. The field takes the current code or a recovery code and confirms one of:

Button What it does
New recovery codes Makes 10 new codes and shows them once; the old ones stop working.
Turn off Removes the TOTP secret, recovery codes and last step from the vault.
Code alone The code becomes the only unlock step (Touch ID or Windows Hello is skipped: one factor).

On, as the only unlock step. New recovery codes as above, and Use Touch ID first (on Windows Use Windows Hello first), which makes it the first step again (refused when it is not available on this computer). Turn off is not offered: the app would have no unlock step left.

Field Default Range What it does
Code needed again after 0 0–1440 min With Touch ID or Windows Hello first: after a code, unlocks within this many minutes need that step only (totpGraceMinutes in settings.json). 0 = a code at every unlock.

Wrong codes: after 5 in a row the app locks (on the lock screen: Touch ID or Windows Hello is needed again; on this page: the app locks). With the code as the only step, the next try then waits 30 s, and every further run of 5 doubles the wait, up to 1 hour. The wait is kept in memory only: quitting and starting KryoDesk resets it (5 tries per start).

The secret and recovery codes leave this page when the app locks while they are shown.

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close