From b76fdff928fd0398cf7c78e3c96dc55163571d86 Mon Sep 17 00:00:00 2001 From: robinmoisson Date: Tue, 13 Jun 2023 10:58:18 +0200 Subject: [PATCH] update readme with overwriting file trick --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index c343099..c07b981 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,14 @@ staticrypt dir_to_encrypt/* -r # => encrypted files are in encrypted/... ``` +**Replace all the files in a folder with encrypted ones**: + +```bash +# 'dir_to_encrypt/*' as argument will select all the files in the directory ('-r' recursively), and the +# '-d dir_to_encrypt' will put them in the same directory, overwriting the files +staticrypt dir_to_encrypt/* -r -d dir_to_encrypt +``` + **Encrypt a file and get a shareable link containing the hashed password** - you can include your file URL or leave blank. (⚠️ you should keep your `.staticrypt.json` so the salt is the same each time you encrypt, or re-encrypting will [invalidate the link](#why-does-staticrypt-create-a-config-file)): ```bash