# Portable Password Vault Recovery Open **Passwords → Password Vault**. Existing local vaults continue to use their current master password. 1. Unlock the vault, then choose **Generate Recovery Key**. Copy and save the key before closing the window. Ghosty Tools cannot retrieve it later. 2. Choose **Export Encrypted Backup**, select a destination and paste the saved key twice. The exported `.ghostyvault` file contains encrypted entries and public encryption metadata. Export again after changing your vault entries. 3. Keep the backup and key separately, preferably offline or in independently encrypted storage. Both are necessary for recovery. 4. On another PC or after reinstalling Windows, choose **Import / Recover Existing Vault**. Select the backup, enter its recovery key and choose a new local master password with at least 12 characters. The recovery controls are available before unlocking a new vault. Replacing an existing local vault requires unlocking it and explicitly approving replacement. Export a backup of the destination first if you need to keep its entries; import replaces rather than merges entries. Current version 2 backups include encrypted usernames/emails and authenticator entries alongside passwords. Version 1 backups still import, with empty usernames and no authenticators. Use an updated Ghosty Tools installation to open version 2 backups. Replacing a vault from an older backup also replaces any authenticator entries currently stored locally. Recovery authenticates and validates all entries before a single SQLite transaction replaces local data. An incorrect key, damaged backup, unsupported format, changed destination or failed transaction leaves existing data intact. The source backup and original PC's vault are unchanged. Recovery keys contain 256 random bits. Backups use AES-256-GCM, a fresh 96-bit nonce, a fresh 128-bit salt and Argon2id with 64 MiB memory, three iterations and four lanes. Versioned metadata is authenticated with the ciphertext. Unsupported KDF parameters are rejected before expensive derivation. The recovery key is requested for each export; it is not saved in application settings, snapshots or logs. A newly generated key works with backups exported using that key. It does not change older backups, and losing it requires making a new key and backup while the local vault remains accessible. There is no developer master key or server recovery service. Local vaults remain encrypted in their existing compatible format. Portable backup encryption is independent of Windows, DPAPI, hardware and the local master password. Passwords and keys are present in application memory while used; clearing Python objects is a best-effort measure, not a guarantee of physical memory erasure.