Skip to content

Commit a96aa4b

Browse files
authored
Merge pull request #13 from sd416/2.5
Added multi file support
2 parents 2f93899 + 77a7544 commit a96aa4b

File tree

2 files changed

+244
-67
lines changed

2 files changed

+244
-67
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ File Encryptor is a command-line tool written in Go that provides secure file en
1111
- Automatically preserve and restore the original file extensions
1212
- Detailed logging for transparency and debugging
1313
- Support for **all file types**: text, images (JPG, PNG), videos, spreadsheets, and more
14-
- Parallel processing for faster encryption and decryption of large files
14+
- **Concurrent processing** with worker pool for faster encryption and decryption of multiple files
15+
- **Graceful cancellation** with timeout support and signal handling (Ctrl+C)
16+
- Robust command-line interface with improved multi-file handling
1517

1618
**File Support Note**:
1719
- The tool supports all file types, including:
@@ -122,6 +124,15 @@ Example:
122124
./file-encryptor -d -f document.pdf.enc -p myStrongPassword123
123125
```
124126

127+
### Additional Options
128+
129+
#### Setting a timeout:
130+
You can set a maximum time for the operation to complete with the timeout flag:
131+
```bash
132+
./file-encryptor -e -f large_file.mp4 -p myPassword --timeout 10m
133+
```
134+
Supported time units: s (seconds), m (minutes), h (hours)
135+
125136
---
126137

127138
## Security Notes
@@ -135,6 +146,12 @@ Example:
135146
- HMAC for integrity verification.
136147
- File extensions are preserved automatically during encryption and restored after decryption.
137148

149+
## Performance Features
150+
151+
- **Concurrent Processing**: The tool uses a worker pool to process multiple files in parallel
152+
- **Cancellation Support**: All operations can be safely cancelled with Ctrl+C
153+
- **Resource Management**: The program automatically limits concurrency based on the number of files
154+
138155
## Contributing
139156

140157
Contributions are welcome! Please feel free to submit a Pull Request.

0 commit comments

Comments
 (0)