From d7a0ee126bfea8f3f024f8b9ba73cda8518335e2 Mon Sep 17 00:00:00 2001
From: Evan Su <48808396+HACKERALERT@users.noreply.github.com>
Date: Sun, 13 Apr 2025 14:33:08 -0400
Subject: [PATCH] Use encrypted-*.zip.pcv instead of Encrypted.zip.pcv
So you don't always have to rename or delete an existing volume
---
Changelog.md | 3 ++-
src/Picocrypt.go | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Changelog.md b/Changelog.md
index 0414cd6..d6dba27 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -3,11 +3,12 @@
Figure out how to remove use of temporary files completely
-# v1.48 (Released 04/11/2025)
+# v1.48 (Released 04/15/2025)
- ✓ Allow pressing 'Enter' key to press Start/Process button
- ✓ Encrypt previously unencrypted temporary zip files
- ✓ Add `.incomplete` to filenames while work is in progress
+ - ✓ Use `encrypted-*.zip.pcv` output name instead of `Encrypted.zip.pcv`
# v1.47 (Released 02/19/2025)
diff --git a/src/Picocrypt.go b/src/Picocrypt.go
index e61c08a..a9b97c0 100644
--- a/src/Picocrypt.go
+++ b/src/Picocrypt.go
@@ -1040,7 +1040,7 @@ func onDrop(names []string) {
}
// Set the input and output paths
- inputFile = filepath.Join(filepath.Dir(names[0]), "Encrypted") + ".zip"
+ inputFile = filepath.Join(filepath.Dir(names[0]), "encrypted-"+strconv.Itoa(int(time.Now().Unix()))) + ".zip"
outputFile = inputFile + ".pcv"
usingTempZip = true
}