Version v0.3.47 - -m Fix directory decryption - skip pause for temp files to allow extraction to continue

This commit is contained in:
2025-12-27 12:13:57 -05:00
parent 974470238d
commit 18a4441746
3 changed files with 9 additions and 6 deletions

View File

@@ -58,14 +58,14 @@ One-time pads can be trivially encrypted and decrypted using pencil and paper, m
### Download Pre-Built Binaries ### Download Pre-Built Binaries
**[Download Current Linux x86](https://git.laantungir.net/laantungir/otp/releases/download/v0.3.45/otp-v0.3.45-linux-x86_64)** **[Download Current Linux x86](https://git.laantungir.net/laantungir/otp/releases/download/v0.3.46/otp-v0.3.46-linux-x86_64)**
**[Download Current Raspberry Pi 64](https://git.laantungir.net/laantungir/otp/releases/download/v0.3.45/otp-v0.3.45-linux-arm64)** **[Download Current Raspberry Pi 64](https://git.laantungir.net/laantungir/otp/releases/download/v0.3.46/otp-v0.3.46-linux-arm64)**
After downloading: After downloading:
```bash ```bash
# Rename for convenience, then make executable # Rename for convenience, then make executable
mv otp-v0.3.45-linux-x86_64 otp mv otp-v0.3.46-linux-x86_64 otp
chmod +x otp chmod +x otp
# Run it # Run it

View File

@@ -1133,8 +1133,11 @@ int decrypt_binary_file(FILE* input_fp, const char* output_file) {
printf("File decrypted successfully: %s\n", output_file); printf("File decrypted successfully: %s\n", output_file);
printf("Restored permissions and metadata\n"); printf("Restored permissions and metadata\n");
// Pause before returning to menu to let user see the success message // Only pause if output is not a temporary file (directory decryption uses /tmp/)
print_centered_header("File Decryption Complete", 1); if (strncmp(output_file, "/tmp/", 5) != 0) {
// Pause before returning to menu to let user see the success message
print_centered_header("File Decryption Complete", 1);
}
// Cleanup // Cleanup
free(encrypted_data); free(encrypted_data);

View File

@@ -23,7 +23,7 @@
#include <ctype.h> #include <ctype.h>
// Version - Updated automatically by build.sh // Version - Updated automatically by build.sh
#define OTP_VERSION "v0.3.45" #define OTP_VERSION "v0.3.46"
// Constants // Constants
#define MAX_INPUT_SIZE 4096 #define MAX_INPUT_SIZE 4096