Update README.md
This commit is contained in:
34
README.md
34
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
|
||||
|
||||
Reference in New Issue
Block a user