# Free File Encryptor

Free File Encryptor is a small Windows desktop app for encrypting and decrypting local files with a passcode. It runs on your computer, does not require accounts, and does not upload files to the cloud.

## Features

- Local-only file encryption and decryption
- No accounts or cloud uploads
- Drag-and-drop file selection when `tkinterdnd2` is installed
- Choose File fallback when drag-and-drop support is unavailable
- Optional backup creation before encryption
- Simple Tkinter interface

## Requirements

- Python 3.10 or newer recommended
- Tkinter, included with most Python for Windows installs
- `cryptography`
- `tkinterdnd2`, optional for drag-and-drop support
- `pyinstaller`, optional for building the Windows executable

## Install for Development

```powershell
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install cryptography tkinterdnd2 pyinstaller
```

If you do not need drag-and-drop support, `tkinterdnd2` can be omitted. The app will still work with the Choose File button.

## Run from Source

```powershell
python Dannys_file_encrypt_prog.py
```

## Build a Windows EXE

Basic GUI executable:

```powershell
pyinstaller --onefile --windowed --name "Free File Encryptor" Dannys_file_encrypt_prog.py
```

Build with the application icon:

```powershell
pyinstaller --onefile --windowed --name "Free File Encryptor" --icon app_icon.ico --add-data "app_icon.ico;." Dannys_file_encrypt_prog.py
```

After building, PyInstaller places the executable in the `dist` folder.

## Usage

1. Open `Free File Encryptor.exe`.
2. Choose a file with the Choose File button or drag and drop a file into the app.
3. Enter a passcode.
4. Keep the backup option enabled if you want an untouched copy before encryption.
5. Click Encrypt File to protect the file.
6. To decrypt, select the encrypted file, enter the exact same passcode, and click Decrypt File.

## Security Warning

Lost passcodes cannot be recovered. The app derives the encryption key from your passcode, so there is no password reset, account recovery, or cloud backup. Store important passcodes safely and test decryption before deleting backups.

## Public Download Page

The public download page is `index.php`. The download button points to:

```text
./Free%20File%20Encryptor.exe
```

Keep `Free File Encryptor.exe` in the same folder as `index.php` so the download link continues to work.
