From ece8583012109271854eba67b039538ee2be1de8 Mon Sep 17 00:00:00 2001 From: disu1950 Date: Sat, 15 Nov 2025 06:22:59 +0000 Subject: [PATCH] Update README.md --- README.md | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 02e286c..ca11e34 100644 --- a/README.md +++ b/README.md @@ -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