Update README.md

This commit is contained in:
2025-11-15 06:22:59 +00:00
parent ed84056aa9
commit ece8583012

View File

@@ -44,28 +44,30 @@ gcc -m32 -Os -s -ffunction-sections -fdata-sections -Wl,--gc-sections -o xorcryp
**Option A**: Install MinGW-w64
* Download from: `https://www.mingw-w64.org/`
* Or use Chocolatey: `choco install mingw`
* Or use MSYS2: `pacman -S mingw-w64-i686-gcc`
* Download from: `https://www.mingw-w64.org/`
**Option B**: Using Visual Studio Developer Command Prompt
* Or use Chocolatey: `choco install mingw`
```bash
# Open "Developer Command Prompt for VS" then:
cl /Fe:xorcrypt.exe xorcrypt.c
```
* Or use MSYS2: `pacman -S mingw-w64-i686-gcc`
**Usage after compilation:**
**Option B**: Using Visual Studio Developer Command Prompt
```bash
# Encrypt/decrypt a file
xorcrypt.exe input.txt output.txt mypassword
```bash
# Open "Developer Command Prompt for VS" then:
cl /Fe:xorcrypt.exe xorcrypt.c
```
# Example
xorcrypt.exe document.txt encrypted.bin secretkey
```
**Usage after compilation:**
**Important Notes**:
```bash
# Encrypt/decrypt a file
xorcrypt.exe input.txt output.txt mypassword
# Example
xorcrypt.exe document.txt encrypted.bin secretkey
```
**Important Notes**:
* `-m32` flag: Forces 32-bit compilation (remove for 64-bit)
* `-O2`: Optimization level 2