Compare commits

...

56 commits
2.08 ... main

Author SHA1 Message Date
Evan Su
8413919078
Update VERSION to 1.49
Some checks failed
build / build (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
No code changes but sync with main GUI repo.
2025-08-03 11:32:49 -04:00
Evan Su
f6be92c11a
Merge pull request #47 from Picocrypt/dependabot/go_modules/picocrypt/golang.org/x/crypto-0.40.0
Bump golang.org/x/crypto from 0.37.0 to 0.40.0 in /picocrypt
2025-08-03 11:29:17 -04:00
dependabot[bot]
fd67f7e44f
Bump golang.org/x/crypto from 0.37.0 to 0.40.0 in /picocrypt
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.37.0 to 0.40.0.
- [Commits](https://github.com/golang/crypto/compare/v0.37.0...v0.40.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-11 04:08:33 +00:00
Evan Su
14b49f0951
Merge pull request #42 from Picocrypt/better-cleanup-and-zip-info
Better cleanup and zip info
2025-04-12 20:31:22 -04:00
Evan Su
95ee00dd6b do a scan for possibly missed temp zip files and del
if they exist
2025-04-12 20:27:55 -04:00
Evan Su
c8b25c04a2 Bump VERSION to 1.48 2025-04-12 20:16:00 -04:00
Evan Su
125cdd818e go get -u -v all && go mod tidy 2025-04-12 20:13:17 -04:00
Evan Su
9801754e55
Update README.md: redirect issues to main repo 2025-04-10 12:13:44 -04:00
Evan Su
c86a70bdfa
Merge pull request #41 from Picocrypt/dependabot/go_modules/picocrypt/golang.org/x/crypto-0.37.0
Bump golang.org/x/crypto from 0.36.0 to 0.37.0 in /picocrypt
2025-04-09 23:55:28 -04:00
dependabot[bot]
ec20601dd3
Bump golang.org/x/crypto from 0.36.0 to 0.37.0 in /picocrypt
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 04:02:27 +00:00
Evan Su
53eb964e71
Merge pull request #39 from Picocrypt/dependabot/go_modules/picocrypt/golang.org/x/crypto-0.36.0
Bump golang.org/x/crypto from 0.35.0 to 0.36.0 in /picocrypt
2025-03-07 19:27:26 -05:00
dependabot[bot]
d78c5e2b3b
Bump golang.org/x/crypto from 0.35.0 to 0.36.0 in /picocrypt
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-06 03:32:19 +00:00
Evan Su
9d468944b4
Merge pull request #36 from Picocrypt/dependabot/go_modules/picocrypt/golang.org/x/crypto-0.35.0
Bump golang.org/x/crypto from 0.34.0 to 0.35.0 in /picocrypt
2025-03-01 13:35:51 -05:00
dependabot[bot]
787053b237
Bump golang.org/x/crypto from 0.34.0 to 0.35.0 in /picocrypt
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.34.0 to 0.35.0.
- [Commits](https://github.com/golang/crypto/compare/v0.34.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-25 03:55:13 +00:00
Evan Su
e3c22b8521
Update go.mod: require go1.24
Some checks failed
CodeQL / Analyze (push) Has been cancelled
2025-02-24 18:16:29 -05:00
Evan Su
81caa2b10f
Merge pull request #35 from Picocrypt/dependabot/go_modules/picocrypt/golang.org/x/crypto-0.34.0
Bump golang.org/x/crypto from 0.33.0 to 0.34.0 in /picocrypt
2025-02-24 18:15:35 -05:00
dependabot[bot]
e165e361d5
Bump golang.org/x/crypto from 0.33.0 to 0.34.0 in /picocrypt
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.33.0 to 0.34.0.
- [Commits](https://github.com/golang/crypto/compare/v0.33.0...v0.34.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 04:06:13 +00:00
Evan Su
f8a8ce7569
Update go.mod: bring go 1.24 down to 1.23
Some checks failed
CodeQL / Analyze (push) Has been cancelled
2025-02-22 00:58:48 -05:00
Evan Su
308600d22c
Update VERSION
Some checks failed
build / build (push) Has been cancelled
2025-02-19 20:42:07 -05:00
Evan Su
5a92c0b695 release 1.46
Some checks failed
build / build (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
catch up to main gui repo
2025-02-11 19:14:47 -05:00
Evan Su
eec3aa4c9e go.mod: require go1.24 2025-02-11 19:13:59 -05:00
Evan Su
dfcaf2ab2a Revert "Use crypto/(hkdf, sha3) instead of golang.org/x/crypto"
This reverts commit 2b9e919cd8.
2025-02-11 19:13:03 -05:00
Evan Su
770be1e714 Revert "Update main.go: bump version"
This reverts commit 10ef21f0cf.
2025-02-11 19:12:58 -05:00
Evan Su
0735254124 Revert "Release 1.47"
This reverts commit 72601f3e44.
2025-02-11 19:12:52 -05:00
Evan Su
72601f3e44
Release 1.47
Use Go 1.24's new crypto/hkdf and crypto/sha3 instead of golang.org/x/crypto/hkdf and sha3
2025-02-11 19:00:29 -05:00
Evan Su
10ef21f0cf
Update main.go: bump version 2025-02-11 18:59:19 -05:00
Evan Su
2b9e919cd8
Use crypto/(hkdf, sha3) instead of golang.org/x/crypto
Go 1.24 brought these from x/crypto into the standard library
2025-02-11 18:58:31 -05:00
Evan Su
11157a4b19
Update build.yml: require Go 1.24 minimum
Will be migrating hkdf and sha3 from golang.org/x/crypto into the standard library which is new to Go 1.24.
2025-02-11 18:48:21 -05:00
Evan Su
7959f4c0a3
Merge pull request #33 from Picocrypt/dependabot/go_modules/picocrypt/golang.org/x/crypto-0.33.0
Bump golang.org/x/crypto from 0.32.0 to 0.33.0 in /picocrypt
2025-02-11 18:43:18 -05:00
dependabot[bot]
749f2d79f5
Bump golang.org/x/crypto from 0.32.0 to 0.33.0 in /picocrypt
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-10 03:50:59 +00:00
Evan Su
209b1877d5
Merge pull request #32 from Picocrypt/dependabot/go_modules/picocrypt/golang.org/x/term-0.29.0
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Bump golang.org/x/term from 0.28.0 to 0.29.0 in /picocrypt
2025-02-06 02:28:17 -05:00
dependabot[bot]
0a54ab5673
Bump golang.org/x/term from 0.28.0 to 0.29.0 in /picocrypt
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.28.0 to 0.29.0.
- [Commits](https://github.com/golang/term/compare/v0.28.0...v0.29.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-05 03:08:58 +00:00
Evan Su
4d93f012b0
Merge pull request #28 from Picocrypt/dependabot/go_modules/picocrypt/github.com/schollz/progressbar/v3-3.18.0
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Bump github.com/schollz/progressbar/v3 from 3.17.1 to 3.18.0 in /picocrypt
2025-01-24 20:06:55 -05:00
dependabot[bot]
dfa4f45ea9
Bump github.com/schollz/progressbar/v3 in /picocrypt
Bumps [github.com/schollz/progressbar/v3](https://github.com/schollz/progressbar) from 3.17.1 to 3.18.0.
- [Release notes](https://github.com/schollz/progressbar/releases)
- [Commits](https://github.com/schollz/progressbar/compare/v3.17.1...v3.18.0)

---
updated-dependencies:
- dependency-name: github.com/schollz/progressbar/v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-10 03:48:57 +00:00
Evan Su
a0e17dbba0
Merge pull request #27 from Picocrypt/dependabot/go_modules/picocrypt/golang.org/x/crypto-0.32.0
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Bump golang.org/x/crypto from 0.31.0 to 0.32.0 in /picocrypt
2025-01-08 16:17:33 -05:00
dependabot[bot]
6d806231e3
Bump golang.org/x/crypto from 0.31.0 to 0.32.0 in /picocrypt
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-07 03:31:09 +00:00
Evan Su
ed3ed73866
Sync version with main repo (1.45)
Some checks failed
build / build (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
2024-12-15 22:05:48 -05:00
Evan Su
7783648aa1
Only build for "safe" GOOS/GOARCH
32-bit systems may have unexpected behaviour due to integer size limits. WASM/WASI probably won't work due to the terminal input.
2024-12-15 22:05:22 -05:00
Evan Su
9a4da02042
Bump to 1.45 2024-12-15 22:03:05 -05:00
Evan Su
5217c88358
Merge pull request #25 from Picocrypt/dependabot/go_modules/picocrypt/golang.org/x/crypto-0.31.0
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Bump golang.org/x/crypto from 0.30.0 to 0.31.0 in /picocrypt
2024-12-12 15:35:59 -05:00
dependabot[bot]
91fee0554c
Bump golang.org/x/crypto from 0.30.0 to 0.31.0 in /picocrypt
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-12 03:28:48 +00:00
Evan Su
019f9e7f7e
Merge pull request #24 from Picocrypt/dependabot/go_modules/picocrypt/golang.org/x/crypto-0.30.0
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Bump golang.org/x/crypto from 0.29.0 to 0.30.0 in /picocrypt
2024-12-05 17:28:42 -05:00
dependabot[bot]
f7c514af20
Bump golang.org/x/crypto from 0.29.0 to 0.30.0 in /picocrypt
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-05 03:50:39 +00:00
Evan Su
7a8ce46dbe
debug.FreeOSMemory() often to reduce memory usage
Some checks failed
build / build (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
2024-11-21 23:36:29 -05:00
Evan Su
d9ff36bbde
debug.FreeOSMemory() often to reduce memory usage 2024-11-21 23:36:11 -05:00
Evan Su
12591ffeed
Bump to 2.09 2024-11-11 19:25:09 -05:00
Evan Su
1d98390b6b
Merge pull request #20 from Picocrypt/dependabot/go_modules/picocrypt/github.com/schollz/progressbar/v3-3.17.1
Bump github.com/schollz/progressbar/v3 from 3.17.0 to 3.17.1 in /picocrypt
2024-11-11 19:23:21 -05:00
dependabot[bot]
50c398c07e
Bump github.com/schollz/progressbar/v3 in /picocrypt
Bumps [github.com/schollz/progressbar/v3](https://github.com/schollz/progressbar) from 3.17.0 to 3.17.1.
- [Release notes](https://github.com/schollz/progressbar/releases)
- [Commits](https://github.com/schollz/progressbar/compare/v3.17.0...v3.17.1)

---
updated-dependencies:
- dependency-name: github.com/schollz/progressbar/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-12 00:21:38 +00:00
Evan Su
2fa994c464
Merge pull request #18 from Picocrypt/dependabot/go_modules/picocrypt/golang.org/x/crypto-0.29.0
Bump golang.org/x/crypto from 0.28.0 to 0.29.0 in /picocrypt
2024-11-11 19:20:23 -05:00
dependabot[bot]
92cbfceb45
Bump golang.org/x/crypto from 0.28.0 to 0.29.0 in /picocrypt
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 03:18:30 +00:00
Evan Su
00d2ccbccb
Merge pull request #17 from Picocrypt/dependabot/go_modules/picocrypt/github.com/schollz/progressbar/v3-3.17.0
Bump github.com/schollz/progressbar/v3 from 3.16.1 to 3.17.0 in /picocrypt
2024-11-01 16:13:57 -04:00
dependabot[bot]
ce290fe374
Bump github.com/schollz/progressbar/v3 in /picocrypt
Bumps [github.com/schollz/progressbar/v3](https://github.com/schollz/progressbar) from 3.16.1 to 3.17.0.
- [Release notes](https://github.com/schollz/progressbar/releases)
- [Commits](https://github.com/schollz/progressbar/compare/v3.16.1...v3.17.0)

---
updated-dependencies:
- dependency-name: github.com/schollz/progressbar/v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 03:39:18 +00:00
Evan Su
408e130073
Merge pull request #14 from Picocrypt/dependabot/go_modules/picocrypt/github.com/schollz/progressbar/v3-3.16.1
Bump github.com/schollz/progressbar/v3 from 3.14.6 to 3.16.1 in /picocrypt
2024-10-09 13:18:48 -04:00
dependabot[bot]
b26db62a4e
Bump github.com/schollz/progressbar/v3 in /picocrypt
Bumps [github.com/schollz/progressbar/v3](https://github.com/schollz/progressbar) from 3.14.6 to 3.16.1.
- [Release notes](https://github.com/schollz/progressbar/releases)
- [Commits](https://github.com/schollz/progressbar/compare/v3.14.6...v3.16.1)

---
updated-dependencies:
- dependency-name: github.com/schollz/progressbar/v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-09 17:12:16 +00:00
Evan Su
89c65928b1
Merge pull request #16 from Picocrypt/dependabot/go_modules/picocrypt/golang.org/x/crypto-0.28.0
Bump golang.org/x/crypto from 0.27.0 to 0.28.0 in /picocrypt
2024-10-09 13:11:11 -04:00
dependabot[bot]
6fe02479e2
Bump golang.org/x/crypto from 0.27.0 to 0.28.0 in /picocrypt
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-07 04:02:05 +00:00
6 changed files with 48 additions and 37 deletions

View file

@ -19,7 +19,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '>1.18'
go-version: '>=1.24'
check-latest: true
cache: false
@ -31,16 +31,12 @@ jobs:
- name: Build
run: |
cd picocrypt
GOOS=windows GOARCH=386 go build -v -ldflags="-s -w" -o picocrypt-windows-386.exe .
GOOS=windows GOARCH=amd64 go build -v -ldflags="-s -w" -o picocrypt-windows-amd64.exe .
GOOS=windows GOARCH=arm64 go build -v -ldflags="-s -w" -o picocrypt-windows-arm64.exe .
GOOS=darwin GOARCH=amd64 go build -v -ldflags="-s -w" -o picocrypt-macos-amd64 .
GOOS=darwin GOARCH=arm64 go build -v -ldflags="-s -w" -o picocrypt-macos-arm64 .
GOOS=linux GOARCH=386 go build -v -ldflags="-s -w" -o picocrypt-linux-386 .
GOOS=linux GOARCH=amd64 go build -v -ldflags="-s -w" -o picocrypt-linux-amd64 .
GOOS=linux GOARCH=arm64 go build -v -ldflags="-s -w" -o picocrypt-linux-arm64 .
GOOS=linux GOARCH=riscv64 go build -v -ldflags="-s -w" -o picocrypt-linux-riscv64 .
GOOS=wasip1 GOARCH=wasm go build -v -ldflags="-s -w" -o picocrypt-wasip1.wasm .
env:
CGO_ENABLED: 0
@ -53,15 +49,11 @@ jobs:
uses: softprops/action-gh-release@v2
with:
files: |
picocrypt/picocrypt-windows-386.exe
picocrypt/picocrypt-windows-amd64.exe
picocrypt/picocrypt-windows-arm64.exe
picocrypt/picocrypt-macos-amd64
picocrypt/picocrypt-macos-arm64
picocrypt/picocrypt-linux-386
picocrypt/picocrypt-linux-amd64
picocrypt/picocrypt-linux-arm64
picocrypt/picocrypt-linux-riscv64
picocrypt/picocrypt-wasip1.wasm
tag_name: ${{ env.VERSION }}
make_latest: true

View file

@ -34,3 +34,6 @@ To decrypt a volume:
```
picocrypt volume.pcv
```
## Issues
Report any issues to the main Picocrypt/Picocrypt repository and prefix the title with 'CLI:'.

View file

@ -1 +1 @@
2.08
1.49

View file

@ -1,17 +1,19 @@
module github.com/Picocrypt/CLI/picocrypt
go 1.22.3
go 1.24.0
toolchain go1.24.1
require (
github.com/Picocrypt/infectious v0.0.0-20240830233326-3a050f65f9ec
github.com/Picocrypt/infectious v0.0.0-20250412183341-9f88c6307b39
github.com/Picocrypt/serpent v0.0.0-20240830233833-9ad6ab254fd7
github.com/schollz/progressbar/v3 v3.14.6
golang.org/x/crypto v0.27.0
golang.org/x/term v0.24.0
github.com/schollz/progressbar/v3 v3.18.0
golang.org/x/crypto v0.40.0
golang.org/x/term v0.33.0
)
require (
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
github.com/rivo/uniseg v0.4.7 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/sys v0.34.0 // indirect
)

View file

@ -1,29 +1,28 @@
github.com/Picocrypt/infectious v0.0.0-20240830233326-3a050f65f9ec h1:/cop0/v0HxIJm1XGDgIlzNJ3e4HhM8nIUPZi5RZ/n1w=
github.com/Picocrypt/infectious v0.0.0-20240830233326-3a050f65f9ec/go.mod h1:aaFq/WMVxrU2Exl/tXbTFSXajZrqw0mgn/wi42n0fK4=
github.com/Picocrypt/infectious v0.0.0-20250412183341-9f88c6307b39 h1:czHyPoiNrILv9xjfQ87UFllJgak8W6gVcYkmfOay/BE=
github.com/Picocrypt/infectious v0.0.0-20250412183341-9f88c6307b39/go.mod h1:2ZVEanURxuWmxYZ6W6xMMy4ZR6xmQr16Vq/XPTLIspQ=
github.com/Picocrypt/serpent v0.0.0-20240830233833-9ad6ab254fd7 h1:G36G2vmQAS7CVoHQrHDGAoCWll/0kPCI8Dk7mgwcJFE=
github.com/Picocrypt/serpent v0.0.0-20240830233833-9ad6ab254fd7/go.mod h1:BxsgRYwUVd92aEwXnXsfXfHw8aHlD/PUyExC/wwk9oI=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/chengxilo/virtualterm v1.0.4 h1:Z6IpERbRVlfB8WkOmtbHiDbBANU7cimRIof7mk9/PwM=
github.com/chengxilo/virtualterm v1.0.4/go.mod h1:DyxxBZz/x1iqJjFxTFcr6/x+jSpqN0iwWCOK1q10rlY=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/k0kubun/go-ansi v0.0.0-20180517002512-3bf9e2903213/go.mod h1:vNUNkEQ1e29fT/6vq2aBdFsgNPmy8qMdSay1npru+Sw=
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc=
github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db h1:62I3jR2EmQ4l5rM/4FEfDWcRD+abF5XlKShorW5LRoQ=
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0dey0ia/Uv7NcFFVbCLtqEBQbrT4OCwCSKTEv6enCw=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
github.com/schollz/progressbar/v3 v3.14.6 h1:GyjwcWBAf+GFDMLziwerKvpuS7ZF+mNTAXIB2aspiZs=
github.com/schollz/progressbar/v3 v3.14.6/go.mod h1:Nrzpuw3Nl0srLY0VlTvC4V6RL50pcEymjy6qyJAaLa0=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
golang.org/x/crypto v0.27.0 h1:GXm2NjJrPaiv/h1tb2UH8QfgC/hOf/+z0p6PT8o1w7A=
golang.org/x/crypto v0.27.0/go.mod h1:1Xngt8kV6Dvbssa53Ziq6Eqn0HqbZi5Z6R0ZpwQzt70=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34=
golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.22.0/go.mod h1:F3qCibpT5AMpCRfhfT53vVJwhLtIVHhB9XDjfFvnMI4=
golang.org/x/term v0.24.0 h1:Mh5cbb+Zk2hqqXNO7S1iTjEphVL+jb8ZWaqh/g+JWkM=
golang.org/x/term v0.24.0/go.mod h1:lOBK/LVxemqiMij05LGJ0tzNr8xlmwBRJ81PX6wVLH8=
github.com/schollz/progressbar/v3 v3.18.0 h1:uXdoHABRFmNIjUfte/Ex7WtuyVslrw2wVPQmCN62HpA=
github.com/schollz/progressbar/v3 v3.18.0/go.mod h1:IsO3lpbaGuzh8zIMzgY3+J8l4C8GjO0Y9S69eFvNsec=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
golang.org/x/crypto v0.40.0 h1:r4x+VvoG5Fm+eJcxMaY8CQM7Lb0l1lsmjGBQ6s8BfKM=
golang.org/x/crypto v0.40.0/go.mod h1:Qr1vMER5WyS2dfPHAlsOj01wgLbsyWtFn/aY+5+ZdxY=
golang.org/x/sys v0.34.0 h1:H5Y5sJ2L2JRdyv7ROF1he/lPdvFsd0mJHFw2ThKHxLA=
golang.org/x/sys v0.34.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
golang.org/x/term v0.33.0 h1:NuFncQrRcaRvVmgRkvM3j/F00gWIAlcmlB8ACEKmGIg=
golang.org/x/term v0.33.0/go.mod h1:s18+ql9tYWp1IfpV9DmCtQDDSRBUjKaw9M1eAv5UeF0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

View file

@ -14,6 +14,7 @@ import (
"os"
"os/signal"
"path/filepath"
"runtime/debug"
"strconv"
"strings"
"time"
@ -184,7 +185,7 @@ func compress() int {
return 1
}
dir = filepath.ToSlash(dir)
file, err = os.CreateTemp("", "picocrypt-cli-v2-*.tmp")
file, err = os.CreateTemp("", "picocrypt-cli-v2-*.zip.tmp")
if err != nil {
fmt.Println("Cannot create temporary file!")
return 1
@ -192,6 +193,8 @@ func compress() int {
pzip = file.Name()
writer = zip.NewWriter(file)
fmt.Println("Info: creating temporary zip file " + pzip)
for i, path := range files {
stat, err := os.Stat(path)
if err != nil {
@ -242,6 +245,7 @@ func compress() int {
return 1
}
}
debug.FreeOSMemory()
}
writer.Close()
file.Close()
@ -342,7 +346,7 @@ func work() int {
hkdfSalt = make([]byte, 32)
serpentIV = make([]byte, 16)
nonce = make([]byte, 24)
_, errs[0] = fout.Write(rsEncode(rs5, []byte("v1.34")))
_, errs[0] = fout.Write(rsEncode(rs5, []byte("v1.48")))
_, errs[1] = fout.Write(rsEncode(rs5, []byte("00000")))
flags := make([]byte, 5)
if *p {
@ -439,6 +443,7 @@ func work() int {
} else {
key = argon2.IDKey(password, salt, 4, 1<<20, 4, 32)
}
debug.FreeOSMemory()
tmp := sha3.New512()
tmp.Write(key)
keyHash = tmp.Sum(nil)
@ -593,6 +598,7 @@ func work() int {
serpent = cipher.NewCTR(s, serpentIV)
counter = 0
}
debug.FreeOSMemory()
}
if mode == "encrypt" {
@ -681,4 +687,13 @@ func main() {
}
os.Exit(1)
}
td := os.TempDir()
matches, err := filepath.Glob(filepath.Join(td, "picocrypt-cli-v2-*.zip.tmp"))
if err != nil {
panic(err)
}
for _, v := range matches {
os.Remove(v)
}
}