# Encrypting a password

Perform the following steps on the machine with the Pentaho Server to create an encrypted password.

1. [Stop the server](/install/9.3-install/pentaho-configuration/tasks-to-be-performed-by-an-it-administrator/configure-the-pentaho-server/start-and-stop-the-pentaho-server-for-configuration.md).
2. At the command line, navigate to the `server/pentaho-server` directory.
3. Run the `encr.bat` command for Windows or the `encr.sh` command for Linux as shown in the example below:

   ```
   encr -kettle <password>
   ```

   An encrypted password is created and displays in the console window.

   **Note:** You must have a JRE or JDK installed to run this command.
4. [Restart the server](/install/9.3-install/pentaho-configuration/tasks-to-be-performed-by-an-it-administrator/configure-the-pentaho-server/start-and-stop-the-pentaho-server-for-configuration.md) and verify that the password is now using encrypted values.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pentaho.com/install/9.3-install/pentaho-configuration/tasks-to-be-performed-by-an-it-administrator/use-password-encryption-with-pentaho/encrypting-a-password.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
