# Passwords

Sanchay keeps your passwords in an encrypted vault on your PC, and pastes them from the same panel as your history. The vault never goes on the network, and the password manager is included in the price.

## Make your vault

1. Right-click the jar icon in the tray and choose **Passwords**. The passwords window opens.
2. Choose **Create the vault**, and type a master password twice: at least 10 characters. A few random words work well. If Sanchay finds it weak, choose a stronger one, or tick **Use it anyway**.
3. Keep the recovery key: choose **Save to a file…**, **Print…** or **Copy**, then **Next**. If you forget the master password, this key opens the vault.
4. Choose the folder for the vault's safe copy (Documents is suggested), then **Next**, or **Create the vault**.
5. If Windows Hello is set up on your PC, choose **Set it up now**, or **Later**.

Nobody can recover a forgotten master password without the recovery key, Sanchay included.

## Keep the recovery key apart

- Keep the recovery key apart from the vault's safe copy, for example on paper, or on another drive: anyone with both could open the vault.
- Sanchay won't save the key in the folder of the vault or of its safe copy, or in a folder inside or above either.
- To make a new key, or remove it, use **The vault** page of the passwords window. The old key stops working at once.

## If you forget the master password

1. On the unlock screen, choose **Use the recovery key**, type the key and choose **Unlock**.
2. Open **The vault** page and choose **Change the master password…**. Choose **Use the recovery key**, type the key again, and choose **Next**.
3. Type a new master password twice and choose **Change it**. If Windows Hello is set up, Windows asks once, so that it keeps unlocking the vault.
4. The vault gets a new key, so the old recovery key no longer opens it. Keep the new one: choose **Save to a file…**, **Print…** or **Copy**, then **Done**.

## The safe copy

After each change, Sanchay keeps an encrypted copy of the vault in the folder you chose. It stays there if you uninstall Sanchay, and **Open a safe copy**, in a Sanchay with no vault yet, brings it back with its master password or recovery key.

- If OneDrive syncs that folder, OneDrive uploads the encrypted copy, not Sanchay, and keeps its earlier versions.
- **Change folder…**, on **The vault** page, moves it. With no folder chosen yet, **Settings → Passwords** offers **Choose…**, which opens that page.

## Unlock with Windows Hello

- To set it up after making the vault, open **The vault** page and choose **Set it up**. Windows asks twice.
- Windows Hello unlocks the vault only while it's switched on in **Settings → Passwords**, set up on this PC, and once you've typed the master password since Windows started. So after a restart, the first unlock takes the master password.
- **Turn it off**, on **The vault** page, removes it and deletes its key.

## Add and organise

- **Add a login**, or **Add another kind…** (**Ctrl+N**) for a secure note, a payment card, a Wi-Fi network, a licence key or a 2FA code on its own.
- Give entries a folder and tags, and star your favourites, which come first. **Ctrl+F** searches, and **Show** filters by folder, tag or kind.
- **Ctrl+S** saves the entry you're editing. Leaving it with unsaved changes, by **Cancel**, **Back to the list** or **Esc**, asks first: **Keep editing** or **Discard**. **Delete…** asks too, and **Keep** takes you back to your changes.
- The **Generator** tab makes random passwords or passphrases, and **Use this** puts one in the entry you're editing.
- **Password health** lists passwords that are weak, reused or unchanged for a year, worked out on your PC only.

## Paste, copy and type it in

Press **Ctrl+Alt+V** and choose the padlock chip, **Passwords**, after **Pinned only**. Unlock with your master password, or press **Enter** in the empty field for Windows Hello.

- **Enter** pastes the selected entry into the app you were in: a login's password (or its code, if it has only a code), a Wi-Fi password, a card's number, a licence key or a note.
- **The code comes next:** once the app has read a pasted password, the login's 2FA code goes on the clipboard, ready for **Ctrl+V** in the next field. You can turn this off in **Settings → Passwords**.
- **Copy:** each row's buttons copy the username, the password, the code and more. **Ctrl+Shift+C** copies what Enter would paste.
- **Type it in:** the keyboard button on a row types the username, the Tab key and the password into the window you were in. If the window's title doesn't mention the entry's site, Sanchay warns first: press it again to type there anyway.
- Sanchay never pastes or types into a window running as administrator, even when Sanchay itself runs as administrator.

A copied secret is kept out of Windows' clipboard history, the cloud clipboard and every app that honours Windows' markers. It's cleared after 30 seconds, then the clipboard gets back what you copied before; change the time in **Settings → Passwords**.

In the passwords window, **Copy** beside a secret field copies it the same protected way, and so do **Ctrl+C** and **Ctrl+Insert** in the field. Cutting does nothing there.

## Add 2FA codes

In a login, choose **Add a code…**, then one of these:

- **Paste its link:** the `otpauth://` link a site gives you.
- **Type its key:** the letters and digits a site shows beside its QR code.
- **Scan the screen,** with the site's QR code showing. Sanchay reads the screen only when you press it, on your PC, and drops the picture right after.
- **Choose pictures…** of QR codes, saved as PNG, JPEG or BMP.

Check the code against the site, then choose **Save**. To bring codes from your phone, choose **Import codes…**: Google Authenticator's export, Aegis or 2FAS.

## Move from another password manager

1. Export your passwords from the other app.
2. In the passwords window, choose **Import…**, then **Choose the file…**. Sanchay suggests the app it came from; pick another if it's wrong, then choose **Read it**.
3. Check the preview. A login with the same site and username as one of yours, but another password, is kept beside yours, unless you choose **Replace mine** or **Skip**.
4. Choose the **Import** button. Nothing is saved before that.
5. Sanchay then offers to delete the file it read, unless it's a KeePass database: choose **Delete it for good**, since an export is usually plain text. If the file was in a folder OneDrive syncs, delete OneDrive's copies too.

Sanchay reads Chrome, Edge and Firefox (CSV), LastPass (CSV), Bitwarden (JSON or CSV), 1Password (1PUX or CSV), and KeePass or KeePassXC (CSV, XML or .kdbx).

## Export and back up

Both exports are on **The vault** page, and ask for your master password first.

- **Export an encrypted copy…** makes a Sanchay vault file of its own, which opens only with its password: today's master password, or one you give it.
- **Export as CSV…** writes a plain file, for browsers or with everything. Anyone who has it can read every password in it, so import it into another password manager, never open it in a spreadsheet app, and delete it when you're done.
- **A backup** from **Settings → Backup** carries the vault, still encrypted. Restoring it brings the vault in when there's none, or merges it into yours once you unlock. See [Backup and restore](https://sanchay.me/guide/backup).

## Locking

The vault locks after 5 minutes without use, and at once when Windows locks, the display turns off, the PC sleeps or you sign out. **Lock**, or **Ctrl+L** in the passwords window, locks it now. Changes to an entry that you haven't saved are dropped as it locks, and Sanchay says so. Closing the passwords window doesn't lock it. Change the time in **Settings → Passwords**.

## By keyboard and with a screen reader

- In the passwords window, **Tab** reaches every control. In **Show**, the arrows, **Home** and **End** choose a filter. **Ctrl+F** searches, **Ctrl+N** adds an entry, **Ctrl+S** saves it, **Ctrl+L** locks the vault, and **Esc** steps back.
- In the panel's **Passwords**, the arrows choose an entry and say its name and place, and **Tab** moves through its buttons. Each button says which keys do the same.
- Narrator reads each control's name, each list with its rows, and each message, even when the same one comes again. On **Password health**, it says when measuring starts and when the list is complete. It reads a secret field only after you press **Show**, until **Hide**.

## After the trial

Your vault keeps working for what's already in it: it unlocks, and you can search, copy, paste, type in and export, delete entries, and change the master password, the recovery key, Windows Hello and the safe copy. Adding, editing, organising and importing need the purchase, and so do making a new vault and merging a backup's vault into yours. The window offers **Buy for $0.99** wherever one of these is refused, the unlock screen included.
