Windows saves sign-ins in per-user DPAPI-protected files by default, beneath
%LOCALAPPDATA%\lastwave\secrets. Only encrypted bytes are written there. The Windows
account that encrypted the data is required to decrypt it; copied files are not portable
sign-ins. This uses CryptProtectData without machine-wide scope or interactive prompts.
See the Microsoft DPAPI documentation.
An existing plaintext cookie file is migrated to protected storage on its next read, and
removed after protected storage succeeds. Explicit credentials = "files" selects
plaintext files instead. credentials = "keychain" selects DPAPI on Windows and login
Keychain on macOS. Linux currently uses files with user-only permissions.
Browser imports briefly export all browser cookies because the external reader requires
a Netscape cookie file. Each operation reserves its own random filename atomically,
retains only YouTube cookies, and removes the export before returning. Unix exports have
mode 0600 inside a 0700 directory. Windows temporary export files inherit the current
user's application-data directory ACL; persisted sign-ins are independently encrypted.
Never include cookies, tokens or protected sign-in files in issue reports. Native storage protects data at rest; programs running as the same Windows user can ask DPAPI to decrypt that user's data.