# How to install and use FenixPyre Encryption/Decryption Tool

## How to Use the FenixPyre Decryption Tool for Offline Bulk Decryption

This guide walks you through the installation and execution of the FenixPyre Encryption/Decryption Tool, designed specifically for customers who need to perform offline bulk decryption of files.

***

### 📋 Prerequisites

Before you begin, ensure you have the following:

* Administrator Privileges: You must have Admin rights on the Windows machine to install the service and modify the Windows Registry.
* Support Files: You must obtain the FenixPyre Encryption/Decryption Tool ZIP file and your organization's specific DB file directly from the Support Team.
* Organization Details: Your specific Organization ID (`orgId`) and administrator email (`username`).

***

### 📍 Quick Reference Paths

| **Resource**           | **Path**                                            |
| ---------------------- | --------------------------------------------------- |
| Tool Installation Path | `C:\Users\Public\FPEncDecTool`                      |
| Windows Registry Path  | `Computer\HKEY_LOCAL_MACHINE\SOFTWARE\FPEncDecTool` |

***

### ⚙️ Step-by-Step Decryption Guide

### Step 1: Prepare the Installation Files

1. Contact the support team to obtain the Enc-Dec Tool ZIP and your DB file.
2. Download and extract the Enc-Dec Tool ZIP to a local directory on your machine.

### Step 2: Install the EncDec Service

1. Open PowerShell as an Administrator. *(Right-click the Start button and select Windows PowerShell (Admin)).*
2. Navigate to the extracted `FPEncDecService` directory:

   PowerShell

   ```
   cd "C:\path\to\extracted\FPEncDecService"
   ```
3. Run the following installation command. Be sure to replace `<your_org_id>` and `<your_org_email>` with your actual credentials:

   PowerShell

   ```
   PowerShell -ExecutionPolicy Bypass -File FPEncDecServiceInstall.ps1 -action install -orgId <your_org_id> -username <your_org_email>
   ```

   > Example: `-orgId 12345 -username admin@yourdomain.com`

### Step 3: Replace the Database File

Once the installation is complete, the tool directory is created on your system.

1. Navigate to the Tool Installation Path:

   `C:\Users\Public\FPEncDecTool`
2. Locate the existing DB file in this directory.
3. Replace it with the specific DB file provided to you by the support team.

### Step 4: Configure Decryption in the Registry

The decryption process is triggered by updating specific keys in the Windows Registry.

1. Press `Win + R`, type `regedit`, and press Enter to open the Registry Editor.
2. Navigate to the following path:

   Plaintext

   ```
   Computer\HKEY_LOCAL_MACHINE\SOFTWARE\FPEncDecTool
   ```
3. Modify the Target Folder:
   * Locate the `folderPath` registry key.
   * Double-click it and set the Value data to the exact directory path containing the encrypted files you wish to decrypt (e.g., `D:\EncryptedFiles`).
4. Trigger the Decryption Action:
   * Locate the `action` registry key.
   * Double-click it and set the Value data to `DECRYPT`.

### Step 5: Verify Decryption

1. Navigate to the folder you specified in the `folderPath` registry key.
2. Verify that the files have been successfully decrypted and are accessible.

***

### 🗑️ How to Uninstall the EncDec Tool

Once you have successfully decrypted all necessary files, it is recommended to uninstall the service to keep your system clean.

1. Open Windows PowerShell as an Administrator.
2. Navigate back to the extracted `FPEncDecService` directory.
3. Run the following uninstallation command:

   PowerShell

   ```
   PowerShell -ExecutionPolicy Bypass -File FPEncDecServiceInstall.ps1 -action uninstall
   ```

***

> Need Help? > If you encounter any errors during installation or the files fail to decrypt, please reach out to the Support Team with a screenshot of the PowerShell output or Registry settings.


---

# 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.fenixpyre.com/fenixpyre-for-admins/fenixpyre-windows-agent/how-to-install-and-use-fenixpyre-encryption-decryption-tool.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.
