Commit graph

62 commits

Author SHA1 Message Date
Evan Su
6140e2beb6 change tooltips for deniability and recursively to a warning
Average user should never need to use these options. Better warn them against it or at least to read the README about the features to understand what they do. These two options can cause funky/unexpected/unintuitive behaviour unless the user understands what they do.
2025-04-18 00:06:01 -04:00
Evan Su
7a1d105a43 also increase multiplier if auto unzip 2025-04-17 23:52:22 -04:00
Evan Su
99a04de263 oops remove debug print statement 2025-04-17 23:46:35 -04:00
Evan Su
ee2abd053c remove duplicate single folder size counting 2025-04-17 23:46:04 -04:00
Evan Su
75c0a017f9 Much more reliable free space estimator 2025-04-17 23:37:36 -04:00
Evan Su
065a50d90e fix: 0700 instead of 0600 for mkdirall 2025-04-13 18:54:00 -04:00
Evan Su
c63cf92672 Start button show "Zip and Encrypt" if temp zip needed 2025-04-13 15:15:43 -04:00
Evan Su
bad71f95ce use 0600 for auto unzip file permissions
prevent executing for safety and only allow user to have access
2025-04-13 14:40:52 -04:00
Evan Su
d7a0ee126b Use encrypted-*.zip.pcv instead of Encrypted.zip.pcv
So you don't always have to rename or delete an existing volume
2025-04-13 14:33:08 -04:00
Evan Su
16bb70dc97 Add .incomplete to end of wip files 2025-04-13 14:24:02 -04:00
Evan Su
757c9c23e4 remove warning for external storage target
since temporary files are now encrypted so no longer matters
2025-04-13 13:32:56 -04:00
Evan Su
159944a619 Encrypt temporary zip files 2025-04-13 13:23:19 -04:00
Evan Su
a849de0edd go get -u -v all && go mod tidy
codeql doesn't like go 1.24 without the .0 after 1.24in go.mod, so I added those in all dependencies
2025-04-13 00:59:56 -04:00
Evan Su
0f1dc2548d
Merge branch 'main' into start-on-enter
Some checks failed
CodeQL / Analyze (push) Has been cancelled
2025-04-10 13:05:16 -04:00
Evan Su
8e11d46abe
Update go.mod: need third part of version as of Go 1.24 2025-04-10 12:56:01 -04:00
Evan Su
fd95597f02 go get -u -v all && go mod tidy
Nothing really changed, just bumped go version in go.mod of deps to 1.24
2025-04-10 12:37:35 -04:00
Evan Su
55ec72864e Only show info/warnings if status is "Ready"
If not, it's probably showing some error message which would happen after starting encryption, so user would've already seen the info/warning status
2025-04-10 12:27:49 -04:00
Evan Su
333aca2a80 Add warnings for zip and external destinations
When encrypting multiple files, Picocrypt will zip them to a temporary zip file on the target location with a .tmp extension. This comes with two issues: 1. requires double the volume size of free storage; 2. external drive must not be unsafe to host the unencrypted temporary zip file.

Prevent potential footguns by showing warnings where appropriate.
2025-04-10 01:20:40 -04:00
Evan Su
d9473f777b Bump to 1.48, update changelog 2025-04-10 00:38:09 -04:00
Evan Su
6f3cbb0a38 Auto press start/process button on Enter key 2025-04-10 00:27:36 -04:00
dependabot[bot]
5c87df9be0
Bump golang.org/x/crypto from 0.36.0 to 0.37.0 in /src
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.36.0 to 0.37.0.
- [Commits](https://github.com/golang/crypto/compare/v0.36.0...v0.37.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.37.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-07 22:41:10 +00:00
dependabot[bot]
ac14f35c7d
Bump golang.org/x/crypto from 0.35.0 to 0.36.0 in /src
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.35.0 to 0.36.0.
- [Commits](https://github.com/golang/crypto/compare/v0.35.0...v0.36.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-05 21:25:00 +00:00
dependabot[bot]
41d97c6c4a
Bump golang.org/x/crypto from 0.33.0 to 0.35.0 in /src
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.33.0 to 0.35.0.
- [Commits](https://github.com/golang/crypto/compare/v0.33.0...v0.35.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-24 22:20:51 +00:00
Evan Su
5e55cb76c7
Bump to v1.47 2025-02-19 20:02:51 -05:00
Evan Su
59eb558729 go mod tidy
Some checks failed
CodeQL / Analyze (push) Has been cancelled
2025-02-11 19:11:24 -05:00
Evan Su
dc69b914a9 go.mod: minimum Go 1.24 2025-02-11 19:09:34 -05:00
dependabot[bot]
195a90c7e3
Bump golang.org/x/crypto from 0.32.0 to 0.33.0 in /src
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.32.0 to 0.33.0.
- [Commits](https://github.com/golang/crypto/compare/v0.32.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-07 22:06:14 +00:00
Alex Verner
445cd48e53 fix: delete a partially extracted file if run out of space 2025-01-28 12:22:19 +03:00
Evan Su
47b65d6fe0 return err on ".." in zip item file path
Unlikely to happen since go stdlib zip doesn't do it, so if it does happen, better safe than sorry.
2025-01-27 01:12:14 -05:00
Evan Su
a929eb1037 final auto unzip code tweaks 2025-01-27 00:55:47 -05:00
Evan Su
bf73698c52 update unpackArchive to use both flags
also remove comments that add no value
2025-01-27 00:32:03 -05:00
Evan Su
10e8a1af82 auto unzip: careful ui state handling 2025-01-27 00:13:11 -05:00
Alex Verner
af3e1748fb Bump to 1.46: zip unpacking and version in title 2025-01-26 01:05:40 +03:00
Alex Verner
fee796845b zip unpacking with status bar 2025-01-25 22:59:41 +03:00
Alex Verner
fdebb502ab unpack zip and version in the window title 2025-01-25 22:12:14 +03:00
dependabot[bot]
8782e80d46
Bump golang.org/x/crypto from 0.31.0 to 0.32.0 in /src
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.31.0 to 0.32.0.
- [Commits](https://github.com/golang/crypto/compare/v0.31.0...v0.32.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-06 21:51:51 +00:00
Evan Su
fb5b92a17d
Bump to 1.45 2024-12-15 21:53:59 -05:00
dependabot[bot]
7472203fa0
Bump golang.org/x/crypto from 0.30.0 to 0.31.0 in /src
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.30.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.30.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-11 21:50:07 +00:00
dependabot[bot]
bb8d2d2a7d
Bump golang.org/x/crypto from 0.29.0 to 0.30.0 in /src
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.29.0 to 0.30.0.
- [Commits](https://github.com/golang/crypto/compare/v0.29.0...v0.30.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-04 21:39:27 +00:00
dependabot[bot]
4e5c556d23
Bump golang.org/x/crypto from 0.28.0 to 0.29.0 in /src
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.28.0 to 0.29.0.
- [Commits](https://github.com/golang/crypto/compare/v0.28.0...v0.29.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-08 21:35:49 +00:00
dependabot[bot]
1c21893e13
Bump golang.org/x/crypto from 0.27.0 to 0.28.0 in /src
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.27.0 to 0.28.0.
- [Commits](https://github.com/golang/crypto/compare/v0.27.0...v0.28.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-04 21:37:36 +00:00
Evan Su
fc50b47f12
Bump to 1.43 2024-09-11 21:45:33 -04:00
dependabot[bot]
94ce7833f5
Bump golang.org/x/crypto from 0.26.0 to 0.27.0 in /src
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.26.0 to 0.27.0.
- [Commits](https://github.com/golang/crypto/compare/v0.26.0...v0.27.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-05 21:21:49 +00:00
Evan Su
fce558b8be panic if crypto/rand.Read errors
Otherwise it would potentially allow zeroed values to be used in the volume which is not good. But this is highly unlikely so not a huge worry.
2024-09-03 00:09:03 -04:00
Evan Su
6ea23b8a86 panic if comments are too long
No one is going to put >99999 characters in the comment field realistically and the UI is likely to freeze and crash before the application gets to this point. So a raw panic is sufficient for this extreme edge case.
2024-09-02 23:31:51 -04:00
Evan Su
b3f36a3994 Validate comments length before parsing 2024-09-02 23:23:38 -04:00
Evan Su
66a3cca464 Move packages to Picocrypt org 2024-08-30 20:55:19 -04:00
Evan Su
b5eb15520b Move packages to Picocrypt org 2024-08-30 20:19:31 -04:00
Evan Su
c5df6252b6 Move packages to Picocrypt organization 2024-08-30 19:53:05 -04:00
Evan Su
57dda53969 Allow specifying files from command line 2024-08-10 23:37:17 -04:00