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
|
**Option A**: Install MinGW-w64
|
||||||
|
|
||||||
* Download from: `https://www.mingw-w64.org/`
|
* Download from: `https://www.mingw-w64.org/`
|
||||||
* Or use Chocolatey: `choco install mingw`
|
|
||||||
* Or use MSYS2: `pacman -S mingw-w64-i686-gcc`
|
|
||||||
|
|
||||||
**Option B**: Using Visual Studio Developer Command Prompt
|
* Or use Chocolatey: `choco install mingw`
|
||||||
|
|
||||||
```bash
|
* Or use MSYS2: `pacman -S mingw-w64-i686-gcc`
|
||||||
# Open "Developer Command Prompt for VS" then:
|
|
||||||
cl /Fe:xorcrypt.exe xorcrypt.c
|
|
||||||
```
|
|
||||||
|
|
||||||
**Usage after compilation:**
|
**Option B**: Using Visual Studio Developer Command Prompt
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Encrypt/decrypt a file
|
# Open "Developer Command Prompt for VS" then:
|
||||||
xorcrypt.exe input.txt output.txt mypassword
|
cl /Fe:xorcrypt.exe xorcrypt.c
|
||||||
|
```
|
||||||
|
|
||||||
# Example
|
**Usage after compilation:**
|
||||||
xorcrypt.exe document.txt encrypted.bin secretkey
|
|
||||||
```
|
|
||||||
|
|
||||||
**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)
|
* `-m32` flag: Forces 32-bit compilation (remove for 64-bit)
|
||||||
* `-O2`: Optimization level 2
|
* `-O2`: Optimization level 2
|
||||||
|
|||||||
Reference in New Issue
Block a user