# Keys and passwords

> SSH keys and database passwords stay in your device’s encrypted storage and move between devices only if you choose. If you lose a device, its encrypted storage and lock keep them protected.

- Section: Security and trust
- Availability: Storage on the device from the Free plan, sync and transfer with Pro and Team. On iPhone, iPad, Mac and Android.
- URL: https://pulse-app.si/en/docs/security/secrets

## Where they’re stored

SSH keys and database passwords are kept in the device’s encrypted storage: the Keychain on iPhone, iPad and Mac, and the Keystore on Android, excluded from automatic backups. They never go through the Pulse server in the clear, and it doesn’t know what your connections open.

They’re tied to your Pulse account on that device, so another account signed in on the same device doesn’t see them. Apple Watch receives none of these secrets.

## When the app uses them

- When you open a connection, from the device, to your server.
- When **Check Regularly** is on, the device tests the connection in the background. That’s why the Keychain makes the secret readable after the device’s first unlock, even with the screen locked.
- When you query a database from Ask Pulse, read-only and on the device.
- When a coding agent connected on your Mac queries a database, the connection starts on the Mac and the secret isn’t passed to the agent.

## How they move between devices

Nothing moves unless you choose to move it. **On this iPhone only** keeps a connection in place, regardless of the settings below. Otherwise, there are four paths:

| Path | Between which devices | What Pulse sees |
| --- | --- | --- |
| **iCloud Keychain Sync** | Apple devices on the same Apple Account | Nothing: end-to-end encrypted by Apple, never sent to Pulse |
| [Vault](https://pulse-app.si/en/docs/security/vault) | iPhone, iPad, Mac and Android | Packets encrypted on your devices, which it can’t open |
| **Send to another device** | Two devices, with a QR code and a 4-digit code, within 5 minutes | A sealed packet, read once then erased, single-use public keys and the device name |
| **Export to a file** | Wherever you want, with a passphrase of at least 12 characters | Nothing: the `.pulseconnections` file stays with you |

iCloud sync is set in **Settings › Devices & Sync** on iPhone and iPad, and in **Settings › Security** on Mac. It’s on by default with Pro and Team. If your plan ends, it turns off after copying the items to the device.

By default, a transfer only accepts your own account. **Allow Another Pulse Account** lifts that restriction for one transfer.

## What protects them in use

- A [database write](https://pulse-app.si/en/docs/pro/writes) always asks for Face ID, Touch ID, your fingerprint or the device code.
- The app lock protects access to the app, with the same device authentication.
- Each SSH server’s fingerprint is compared on every connection: see [SSH terminal](https://pulse-app.si/en/docs/pro/terminal).

## If you lose a device

- Its secrets stay protected by the encrypted storage and the device lock.
- With the vault, remove it in **My devices**. The vault key changes and the screen lists the secrets that device knew.
- In all cases, change the affected database passwords and remove its public key from `~/.ssh/authorized_keys` on your servers.

> **Pulse can’t recover a secret**
>
> We don’t have your keys or passwords. Without sync, the vault, or an export, a secret is lost with its device.

- [Pulse Vault](https://pulse-app.si/en/docs/security/vault)
- [What Pulse sees](https://pulse-app.si/en/docs/security/what-we-see)
- [SSH keys](https://pulse-app.si/en/docs/pro/ssh-keys)
