Signing in and two-factor
Your password
Section titled “Your password”Your password does two jobs, and it never leaves your browser:
- The browser derives a key from it with Argon2id. From that key it derives a login secret, which it sends to the server instead of the password, and a separate wrapping key, which unlocks your encryption keys and is never sent.
- After login, the server returns your encrypted keys, and the browser unlocks them with the wrapping key.
So the server can check your password without being able to unlock your messages. Passwords need at least 10 characters. Long passphrases or password-manager passwords are best, because the password protects your keys if the database ever leaks (why).
Change it in Your menu → Change password. Your browser re-encrypts your keys with the new password, and your other devices are signed out.
Forgot it? An admin can send you a setup link, and with your recovery key you keep your conversations.
On this device
Section titled “On this device”After you sign in, your keys stay in this browser as non-exportable keys: scripts on the page can use them but can’t read them out. They stay until you log out, which deletes them from the browser.
Tick Public computer: don’t keep my keys after I close this tab when signing in on a machine that isn’t yours. The keys then live only in the tab’s memory. Reloading asks for your password again (“Unlock your messages”), and a public-computer session gets no push notifications and keeps no search index.
Two-factor authentication
Section titled “Two-factor authentication”Your menu → Two-factor authentication. Two-factor protects your account: someone who learns your password still can’t sign in. Your messages are protected by your keys either way. The server asks for the second factor before it hands out your encrypted keys.

Authenticator app
Section titled “Authenticator app”Works everywhere, including quick tunnels. Choose Set up an authenticator app, confirm with your password, scan the QR code (or type the key) into any TOTP app such as Aegis, 2FAS, Google Authenticator, 1Password or Bitwarden, and enter a code.
Security keys and passkeys
Section titled “Security keys and passkeys”A YubiKey, or a passkey on your phone, computer or in your password manager. Give it a name and touch or unlock it. You can add several.
Passkeys and security keys are tied to a hostname, so hytte offers them only on a stable address: a server started with --domain (which Let’s Encrypt sets automatically), or localhost. They aren’t available on quick tunnels.
Sign in with a passkey on the login page works without typing your username or password. Your messages still need unlocking:
- Passkeys that support the PRF extension (most current platform passkeys and recent security keys) unlock your messages too. When you add one, hytte asks you to touch it once more to set this up, and it then shows Signing in with this passkey also unlocks your messages.
- Other passkeys sign you in. On a device that already holds your keys, that’s enough. On a new device, hytte asks for your password once.
Backup codes
Section titled “Backup codes”When you set up two-factor, hytte shows 10 one-time backup codes, once. Store them in a safe place. Each one gets you in once if you lose your phone or key. Make new ones in the same dialog when you run low (this replaces the old ones).
Lost everything? An admin can remove your two-factor methods (Admin → Users, or hytte --reset-mfa NAME). Then set it up again.
Required for everyone
Section titled “Required for everyone”An admin can require two-factor for all accounts (Admin → Settings → Two-factor authentication, or --require-mfa). Accounts without it must set it up right after signing in, before they can chat.