From 60a144102c2a26df91f59e90ecd125d7946632bc Mon Sep 17 00:00:00 2001
From: Evan Su <48808396+HACKERALERT@users.noreply.github.com>
Date: Thu, 25 Apr 2024 10:23:12 -0400
Subject: [PATCH] Add CLI v2 usage instructions
---
cli/v2/picocrypt/README.md | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/cli/v2/picocrypt/README.md b/cli/v2/picocrypt/README.md
index 8507f81..4e52190 100644
--- a/cli/v2/picocrypt/README.md
+++ b/cli/v2/picocrypt/README.md
@@ -1,6 +1,29 @@
# Installation
If you don't have Go installed, download it from here 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 [ ...]
+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
+```