You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,9 @@ You can then run it with `npx staticrypt ...`. You can also install globally wit
30
30
31
31
```bash
32
32
staticrypt test.html -p MY_LONG_PASSWORD
33
+
34
+
# or do not include the password if you want to be prompted for it:
35
+
staticrypt test.html
33
36
```
34
37
35
38
**Encrypt a file with the password in an environment variable:** set your long password in the `STATICRYPT_PASSWORD` environment variable ([`.env` files](https://www.npmjs.com/package/dotenv#usage) are supported):
**Pin the salt to use staticrypt in your CI in a build step** - if you want want the "Remember-me" or share features to work accross multiple pages or multiple successive deployment, the salt needs to stay the same ([see why](https://github.com/robinmoisson/staticrypt#why-does-staticrypt-create-a-config-file)). If you run StatiCrypt in a CI step, you can pin the salt in two ways:
@@ -84,6 +90,8 @@ The password argument is optional if `STATICRYPT_PASSWORD` is set in the environ
84
90
empty to be prompted for it. If
85
91
STATICRYPT_PASSWORD is set in the env, we'll
86
92
use that instead. [string] [default: null]
93
+
-r, --recursive Whether to recursively encrypt the input
94
+
directory. [boolean] [default: false]
87
95
--remember Expiration in days of the "Remember me"
0 commit comments