"The safest password is the one your app never has. You can't leak a secret you refused to hold."
The Temptation to Store the Password
Reconnecting to a share is smoother if the app just remembers the username and password. So the tempting design is to stash them somewhere — in the saved URL (smb://user:pass@host), in the app's database, in a config file. Every one of those is a leak waiting to happen: the URL ends up in a log, the database gets backed up somewhere readable, the config file gets committed to git. A stored secret is a secret with many exits.
Waygate Holds No Secret
Waygate's design removes the whole risk by never holding the secret. It has no credential store. The username and password are owned entirely by macOS's connect UI and Keychain — the system prompts, the system stores, the system supplies them at mount time. Waygate never puts a credential in a URL, its SQLite, a log line, or anything that could reach git. When a share needs connecting, Waygate triggers the system flow and steps back.
Not Storing Is the Strongest Protection
This is a general security truth worth internalizing: the most reliable way to never leak a secret is to never possess it. Encrypting a stored password is better than plaintext, but it still means your app holds the key, the ciphertext, and the responsibility. Delegating to Keychain means the secret was never yours to lose. Waygate chooses delegation every time — the file manager's job is to browse and mutate files, not to be a second password manager.