A command-line interface for Picocrypt.
Find a file
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
.github Add 386 and wasi builds 2024-07-08 23:14:32 -04:00
picocrypt Bump github.com/schollz/progressbar/v3 in /picocrypt 2024-11-12 00:21:38 +00:00
.gitignore Initial commit 2024-06-01 11:09:16 -04:00
CODEOWNERS Create CODEOWNERS 2024-07-07 19:47:57 -04:00
LICENSE Initial commit 2024-06-01 11:09:16 -04:00
README.md Update README.md 2024-07-07 19:52:22 -04:00
VERSION Bump to 2.08 2024-09-11 21:40:36 -04:00

Installation

If you don't have Go installed, download it from here or install it from your package manager. Next:

go install github.com/Picocrypt/CLI/picocrypt@latest

You should now be able to run picocrypt in your terminal. If not, run export PATH=$PATH:$(go env GOPATH)/bin and try again.

Alternatively, you can use the prebuilt binaries in Releases.

Usage

C:\Users\Evan>picocrypt
Usage: picocrypt <item1> [<item2> ...]
Items: can be files, folders, or globs
Flags:
  -f    (decryption) attempt to fix corruption
  -k    (decryption) keep output even if corrupted
  -p    (encryption) use paranoid mode
  -r    (encryption) encode with Reed-Solomon

Examples

To encrypt a single file:

picocrypt secret.pdf

To encrypt all files in the current working directory:

picocrypt *

To encrypt all PNGs and JPGs with paranoid mode and Reed-Solomon:

picocrypt -p -r *.png *.jpg

To decrypt a volume:

picocrypt volume.pcv