Picocrypt/cli/v2/picocrypt/README.md

35 lines
978 B
Markdown
Raw Normal View History

2024-04-25 16:14:41 +02:00
# Installation
If you don't have Go installed, download it from <a href="https://go.dev/dl/">here</a> or install it from your package manager. Then, run the command below:
2024-04-25 16:23:12 +02:00
```
2024-04-25 16:14:41 +02:00
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.
2024-04-25 16:23:12 +02:00
# Usage
```
C:\Users\Evan>picocrypt
2024-04-27 20:20:49 +02:00
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
2024-04-25 16:23:12 +02:00
```
## 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
```