> 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/copystorm-director/reference/copystorm-jobrunner/copystorm-jobrunner-credentials.md).

# CopyStorm/JobRunner Credentials

CopyStorm/JobRunner requires that the credentials for a CopyStorm/Director database be specified. There are two ways to specify credentials:

* Explicitly as clear text on the command line.
* Explicitly as an encrypted token on the command line.

The clear text approach is simple but not very secure. For example:

* CopyStormJobRunner.bat -cstype postgresql -csdatabase //localhost/copystormjob -csuser root -cspassword helloworld

The command line arguments shown are exactly the same data that is required to launch CopyStorm/Director.

To launch with an encrypted token requires a bit of setup but keeps intruders from seeing a visible password.

* The credential token is a DES-256 encrypted string.
* Example: CopyStormJobRunner.bat -cscredentials “u0JmFcF4te6InFu0owWtmRTpxMsqwnFp9MXeR7hf2LbQtxHgaHsaGt7i8CeYscQ9ZjvOObWGE6Frh2gLOIVILIruq7mYeXuUJLaYOxFuMCHKtxb4wBu5l+HoN41d1hWe+tLKNFuvyDUJEC9hMSWvkg==”

The process to generate a credential token involves one of:

* Opening the Job Runner tab on the CopyStorm/Director GUI and copying the generated token.
* Running CopyStorm/JobRunner on the command line with clear text credentials and the action “-action makeCredentials”.

## Approach 1: Copy a Credentials Token From the CopyStorm/Director GUI.

![](https://4094748065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F762n2rpeqXwJ3ygR1d80%2Fuploads%2Fgit-blob-08c86224f921ef439590f43d970f93e3bb7048d1%2F2d33fa33-JobRunnerCredentials.png?alt=media)

## Approach 2: Generate a Credentials Token From CopyStorm/JobRunner

![](https://4094748065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F762n2rpeqXwJ3ygR1d80%2Fuploads%2Fgit-blob-6aa29264d0461da3739cc4358c40e7248ba51f59%2Fdd1f26c7-CredentialsTokenCommandLine-800x314.png?alt=media)

Capstorm recommends that an encrypted token always be used. However, anywhere CopyStorm/Director database are illustrated in the documentation, either form of credentials may be used.
