Picocrypt/cli/v2/picocrypt
Evan Su 3804a6c60c Add a newline on cancel CLI 2024-04-27 21:50:54 -04:00
..
vendor Rewrite CLI, go mod vendor 2024-04-27 13:10:26 -04:00
README.md Update CLI usage 2024-04-27 14:20:49 -04:00
go.mod Add progress bars 2024-04-25 18:07:42 -04:00
go.sum Add progress bars 2024-04-25 18:07:42 -04:00
main.go Add a newline on cancel CLI 2024-04-27 21:50:54 -04:00

README.md

Installation

If you don't have Go installed, download it from here or install it from your package manager. Then, run the command below:

go install github.com/HACKERALERT/Picocrypt/cli/v2/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.

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