> For the complete documentation index, see [llms.txt](https://learn.capstorm.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.capstorm.com/frequently-asked-questions/usage/where-does-copystorm-store-passwords.md).

# Where Does CopyStorm Store Passwords?

By default, CopyStorm does not store Salesforce or database passwords. To enable this option, select the “Store Passwords” option when [saving a configuration file](https://learn.capstorm.com/copystorm-restore/readme/reference/configuration-files). When checked, CopyStorm will maintain Salesforce password security by encrypting Salesforce and database passwords in the save file.

## What if I Want to Store Passwords in a Password Manager?

CopyStorm includes an extensible system which allows the usage of third-party password managers to store Salesforce passwords. The default password storage locations include:

* Directly within the CopyStorm save file (this is the default).
* Within a KeePass file named “passwords.kdbx” located in any of:
  * The user’s home directory.
  * The CopyStorm installation directory.
  * A subdirectory of the CopyStorm installation directory named “config”.
  * Any directory adjacent to the CopyStorm installation directory.

To use your own password manager, please see our tutorial titled [How to Add a New Password Manager](/frequently-asked-questions/usage/where-does-copystorm-store-passwords/how-to-add-a-new-password-manager.md).

## How to Use the KeePass Password Manager

To enforce Salesforce password security using the KeePass password manager to authenticate with Salesforce, you will need:

* A kdbx (KeePass v2.x) formatted password file containing the username and password of the Salesforce user.
  * For more information on the KeePass password manager, see <https://keepass.info/>
  * The user’s Security Token may be either:
    * Appended to the user’s password.
    * Stored in a text attribute named “Security Token”
* A copy of the kpcli.pl Perl script (version 3.2) available here:
  * <http://kpcli.sourceforge.net/>
  * The Perl script is used for both Windows and Linux installations — the Windows-formatted exe will not work.
* A Perl installation with all dependencies for kpcli installed.
  * Dependencies can be found at the kpcli homepage (<http://kpcli.sourceforge.net/>)

After installing Perl with the kpcli dependencies:

* Put the passwords.kdbx file in one of the locations referenced above.
* Put the kpcli.pl script in one of the locations referenced above (make sure the file is named “kpcli.pl”).
* Make sure the script is installed correctly by running the command:
  * ```
    perl /path/to/kpcli.pl -kdb /path/to/passwords.kdbx --command "show -f /password/entry"

    ```
  * If kpcli.pl is installed correctly and the password entry path is correct, it will print the Salesforce credentials.
* Restart the CopyStorm UI. Under the “Advanced Parameters” section of the Main tab, a “Credential Type” option of “Keepass” will appear:\
  ![](https://4057376488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsbSqfKw3vSfr8qwXao4j%2Fuploads%2Fgit-blob-1f759eda7314f95ddd9c0d1d28605a25033c791b%2Fb6fff4ef-Credential-Dropdown.png?alt=media)
* Enter the KeePass file password and the path to the Salesforce user’s password entry:\
  ![](https://4057376488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsbSqfKw3vSfr8qwXao4j%2Fuploads%2Fgit-blob-3cecdf513ac3632be23d1879231c64dbebda7d03%2F270673ba-Main-Tab-Keepass.png?alt=media)
* Test the connection by pressing the “Test Salesforce Connection” button.
  * If the KeePass file password is incorrect, or if the kpcli.pl script is set up incorrectly, an error will appear which looks like:\
    ![](https://4057376488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsbSqfKw3vSfr8qwXao4j%2Fuploads%2Fgit-blob-bb057e89f2fac591a61ad8cfa44068e1d0078053%2F5cbc3999-KeePass-wrong-password.png?alt=media)
  * If the Entry does not appear in the Keepass file, an error will appear which looks like:\
    ![](https://4057376488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsbSqfKw3vSfr8qwXao4j%2Fuploads%2Fgit-blob-4f1f8b75d8cf74583c6d1da1ea9059a24211e37c%2F5cb8c4fa-No-Keepass-Entry.png?alt=media)
