---
title: "How to create Encrypted Password using Command Line of Salesforce Data Loader?"  
description: "How to create Encrypted Password using Command Line of Salesforce Data Loader?"  
author: "Oasge Christiansen"  
published: 2018-02-08  
canonical: https://answers.mindstick.com/qa/34230/how-to-create-encrypted-password-using-command-line-of-salesforce-data-loader  
category: "salesforce"  
tags: ["salesforce", "dataloader", "command-line", "create encrypted password"]  
reading_time: 2 minutes  

---

# How to create Encrypted Password using Command Line of Salesforce Data Loader?

How to create Encrypted [Password](https://www.mindstick.com/blog/243/how-to-create-password-protected-report) using [Command Line](https://www.mindstick.com/interview/477/how-can-i-execute-a-php-script-using-command-line) of [Salesforce](https://www.mindstick.com/articles/12736/exploring-the-usage-and-benefits-of-salesforce-for-businesses) [Data](https://yourviews.mindstick.com/view/84027/what-does-google-do-with-your-data) [Loader](https://www.mindstick.com/forum/156609/create-loader-with-bootstrap)?

## Answers

### Answer by Tarun Gautam

Below I have explained the steps to create the encrypted password by using the key, the key you have already generated, for example, you have a generated key like "e8a68b73992a7a54".

## Follow the Steps to encrypt the password:

**Step 1:** Open the [command](https://www.mindstick.com/interview/36/what-is-the-use-of-alter-table-command-in-database) prompt window and move to the directory where the Data Loader is installed. Use cd\ command to navigate to the root directory of the drive.

\
**Step 2:** Now, find the Data Loader\bin directory by entering the command: \

```
cd C:\Program Files (x86)\salesforce.com\Apex Data Loader 22.0\bin
```

\
**Step 3:** Now, to encrypt the key enter the following command: \

```
encrypt.bat —g <seedtext>
```

![How to create Encrypted Password using Command Line of Salesforce Data Loader?](https://answers.mindstick.com/questionanswer/1db423fe-2155-4f71-a3bb-a8e965410139/images/885634f4-14d2-4654-b2dc-942c0bef8147.png)\

after entering the command press enter key, now you have successfully created your key.

\
**Step 4:** Now, using the previous command prompt window, use the following command, and use the <password> with the replacement password which the Data Loader uses for login to the Salesforce. and use the <filepath> with the replacement file path to the key.txt file that you created in the previous step. \

```
encrypt.bat –e <password> "<filepath>\key.txt"
```

![How to create Encrypted Password using Command Line of Salesforce Data Loader?](https://answers.mindstick.com/questionanswer/1db423fe-2155-4f71-a3bb-a8e965410139/images/2ffd9428-05d6-4b04-868a-a941b079bd77.png)\

\

**Step 5:** At last, after encrypting the password, copy the encrypted password that is generated by the command, and use it according to your need.


---

Original Source: https://answers.mindstick.com/qa/34230/how-to-create-encrypted-password-using-command-line-of-salesforce-data-loader

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
