Metadata-Version: 2.4
Name: fileprotector
Version: 0.1.2
Summary: Encrypt PDF and Excel files in bulk using a password
Author: Yali Achitov
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PyPDF2>=3.0.1
Requires-Dist: msoffcrypto-tool
Dynamic: license-file

# File Protector

A cross-platform CLI tool to batch encrypt PDF and Excel files with password protection, while preserving the original folder structure.

## Features

- Encrypts PDF and Excel (.xlsx, .xls) files with password protection
- Preserves original folder structure in the output
- Handles already encrypted PDFs with option to decrypt and re-encrypt
- Creates a new "Protected" folder with the original folder name
- Provides detailed operation summary and skipped files report

## Installation

Install globally using pip:

```bash
pip install fileprotector
```

## Usage

```bash
fileprotector <input_folder> <password>
```

Example:

```bash
fileprotector "C:\Users\Documents\Reports" MySecurePassword123
```

This will:
1. Process all PDF and Excel files in the "Reports" folder and its subfolders
2. Create a new folder named "Protected Reports"
3. Save encrypted versions of all files in the new folder
4. Maintain the original subfolder structure

## Supported File Types

- PDF (.pdf)
- Excel (.xlsx, .xls)

## Error Handling

The script provides comprehensive error handling for:
- Already encrypted PDFs
- Invalid files
- Permission issues
- Missing folders

A summary is provided after completion showing:
- Successfully processed files
- Skipped files with reasons
- Total count of processed and skipped files

## License

[MIT License](LICENSE)
