15
15
16
16
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
17
17
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
18
+
18
19
** Table of Contents**
19
20
20
21
- [ Description] ( #description )
@@ -167,13 +168,14 @@ flowchart TD;
167
168
168
169
** encrypt**
169
170
170
- Encrypt ` /path/to/sourcefile.xlsx ` to ` /path/to/sourcefile.xlsx.aes ` with environment password-variable ` my_secret_var `
171
+ Encrypt ` /path/to/sourcefile.xlsx ` to ` /path/to/sourcefile.xlsx.aes ` with environment password-variable
171
172
172
173
``` cli
173
- ./file_encryption-decryption-x86_64.AppImage --source /path/to/sourcefile.xlsx --pwd my_secret_var
174
+ export my_secret_env_var="my_top_secret_password"
175
+ ./file_encryption-decryption-x86_64.AppImage --source /path/to/sourcefile.xlsx --pwd my_secret_env_var
174
176
```
175
177
176
- Encrypt ` /path/to/sourcefile.xlsx ` to ` /new/path/to/targetfile.xlsx.aes ` with dotenv-file ( ` PWD=$my_secret_var ` )
178
+ Encrypt ` /path/to/sourcefile.xlsx ` to ` /new/path/to/targetfile.xlsx.aes ` with dotenv-file
177
179
178
180
``` cli
179
181
./file_encryption-decryption-x86_64.AppImage --source /path/to/sourcefile.xlsx --target /new/path/to/targetfile.xlsx --dotenv /my/configpath/.file_enc-dec
@@ -188,29 +190,32 @@ Encrypt `/path/to/sourcefile.xlsx` to `/new/path/to/targetfile.xlsx.aes` with do
188
190
Decrypt ` /path/to/sourcefile.xlsx.aes ` to ` /path/to/sourcefile.xlsx `
189
191
190
192
``` cli
191
- ./file_encryption-decryption-x86_64.AppImage --source /path/to/sourcefile.xlsx.aes
193
+ ./file_encryption-decryption-x86_64.AppImage --source /path/to/sourcefile.xlsx.aes ...
192
194
```
193
195
194
196
Decrypt ` /path/to/sourcefile.xlsx.aes ` to ` /new/path/to/targetfile.xlsx `
195
197
196
198
``` cli
197
- ./file_encryption-decryption-x86_64.AppImage --source /path/to/sourcefile.xlsx.aes --target /new/path/to/targetfile.xlsx
199
+ ./file_encryption-decryption-x86_64.AppImage --source /path/to/sourcefile.xlsx.aes --target /new/path/to/targetfile.xlsx ...
198
200
```
199
201
200
202
## configuration: dotenv or env
201
203
202
204
Example dotenv file ` .env `
203
205
206
+ ``` cli
207
+ export my_env_secret="my_top_secret_password"
208
+ # => PWD => $my_secret_env_var => my_top_secret_password
209
+ ```
210
+
204
211
``` dotenv
205
212
SOURCE_FILE=/inpath/to/file.xlsx # Mandatory or mandatory via argument --source
206
213
TARGET_FILE=/outpath/to/file.xlsx # Optional or optional via argument --target
207
- PWD=my_env_secret # Mandatory get password from $my_env_secret or mandatory via --pwd my_env_secret
214
+ PWD=my_secret_env_var # Mandatory get password from $my_secret_env_var or mandatory via --pwd my_secret_env_var
208
215
```
209
216
210
- Example pwd environmwent variable
211
-
212
- ``` cli
213
- export PWD="top_secret_password"
217
+ ```` cli
218
+ ./file_encryption-decryption-x86_64.AppImage --source /path/to/sourcefile.xlsx --pwd my_secret_env_var
214
219
```
215
220
216
221
## Test / Performance
@@ -300,6 +305,7 @@ An utility to load environment variables from a .env file
300
305
## folder structure
301
306
302
307
<!-- readme-tree start -->
308
+
303
309
```
304
310
.
305
311
├── .github
@@ -348,6 +354,7 @@ An utility to load environment variables from a .env file
348
354
349
355
10 directories, 34 files
350
356
```
357
+
351
358
<!-- readme-tree end -->
352
359
353
360
<p align="right">(<a href="#top">back to top</a>)</p>
@@ -393,3 +400,4 @@ SOFTWARE.
393
400
:vulcan_salute:
394
401
395
402
<p align="right">(<a href="#top">back to top</a>)</p>
403
+ ````
0 commit comments