mirror of
https://github.com/HACKERALERT/Picocrypt.git
synced 2024-05-06 21:33:04 +12:00
Add CLI v2 usage instructions
This commit is contained in:
parent
60dd17749c
commit
60a144102c
|
@ -1,6 +1,29 @@
|
|||
# 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:
|
||||
```bash
|
||||
```
|
||||
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 [-p]aranoid [-r]eedsolo <item1> [<item2> ...]
|
||||
Items: can be a file (cat.png), folder (./src), or glob (*.txt)
|
||||
```
|
||||
## 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
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue