A colleague needs the server password, your parents need the Wi-Fi password, a contractor needs an API key. The easy way is to type it into a messenger, but then the password sits in the chat for years, in its cloud backups and in notifications on the lock screen. Here is how to pass a secret on without leaving it where someone can find it.

Why messengers and e-mail are a bad idea

Option 1: sharing in a password manager

If you and the recipient use the same password manager, this is the best choice. Bitwarden, 1Password, KeePassXC with a shared database, Apple and Google Passwords let you share an entry or a folder. The password travels encrypted, access can be revoked, and when the password changes the recipient sees the new one at once.

Option 2: an encrypted link

When there is no shared manager, use an encrypted link. The text is encrypted in your browser, and the key lives in the link itself after the # sign — a part of the address that is never sent to the server. Only the link stays in the chat, and for anything important it can be protected with a password.

  1. Paste the secret and turn on “Protect with a password”.
  2. Send the link through one channel, for example a messenger.
  3. Share the link password through another: by voice, by phone, in a different messenger.
  4. Ask the recipient to delete the message once read.

An attacker who intercepts only the link or only the password learns nothing. “Self-destructing note” services such as Privnote are handy because the message disappears once read, but the secret is stored on their server for a while.

Option 3: an encrypted file

For several passwords, SSH keys or a configuration file, use password-based file encryption. You get a .pasw file you can send any way you like: by e-mail, through the cloud, on a USB stick. The password, again, goes through a separate channel. The file can be decrypted on the same page or with a short Python script.

Option 4: a secret no single person should hold

A company vault’s master password or a recovery key is best not handed to anyone in full. Shamir’s scheme splits it into shares — say, five, any three of which rebuild it. Each keeper gets one share, and nobody can use the secret alone.

Rules that always apply

Sharing the Wi-Fi password

Guests do not need the password read out at all: print a card with a Wi-Fi QR code. The phone camera joins the network by itself, so the password can be long and random. Even better is a separate guest network, covered in the article on securing home Wi-Fi.