fix typo in examples

pull/163/head v3.0.1
robinmoisson 2023-03-30 18:57:50 +02:00
rodzic dbbad9127b
commit 7385886969
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 9419716500078583
3 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -43,14 +43,14 @@ staticrypt test.html
```bash ```bash
# you can also pass '--share' without specifying the URL to get the `#staticrypt_pwd=...` # you can also pass '--share' without specifying the URL to get the `#staticrypt_pwd=...`
staticrypt test.html MY_LONG_PASSWORD --share https://example.com/test_encrypted.html staticrypt test.html -p MY_LONG_PASSWORD --share https://example.com/test_encrypted.html
# => https://example.com/test_encrypted.html#staticrypt_pwd=5bfbf1343c7257cd7be23ecd74bb37fa2c76d041042654f358b6255baeab898f # => https://example.com/test_encrypted.html#staticrypt_pwd=5bfbf1343c7257cd7be23ecd74bb37fa2c76d041042654f358b6255baeab898f
``` ```
**Encrypt all html files from a directory** and put them in a `encrypted/` directory: **Encrypt all html files from a directory** and put them in a `encrypted/` directory (`{}` will be replaced with each file name by the `find` command):
```bash ```bash
find . -type f -name "*.html" -exec staticrypt {} MY_LONG_PASSWORD \; find . -type f -name "*.html" -exec staticrypt {} -p MY_LONG_PASSWORD \;
``` ```
### CLI Reference ### CLI Reference

4
package-lock.json wygenerowano
Wyświetl plik

@ -1,12 +1,12 @@
{ {
"name": "staticrypt", "name": "staticrypt",
"version": "3.0.0", "version": "3.0.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "staticrypt", "name": "staticrypt",
"version": "3.0.0", "version": "3.0.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"crypto-js": "3.1.9-1", "crypto-js": "3.1.9-1",

Wyświetl plik

@ -1,6 +1,6 @@
{ {
"name": "staticrypt", "name": "staticrypt",
"version": "3.0.0", "version": "3.0.1",
"description": "Based on the [crypto-js](https://github.com/brix/crypto-js) library, StatiCrypt uses AES-256 to encrypt your input with your passphrase and put it in a HTML file with a password prompt that can decrypted in-browser (client side).", "description": "Based on the [crypto-js](https://github.com/brix/crypto-js) library, StatiCrypt uses AES-256 to encrypt your input with your passphrase and put it in a HTML file with a password prompt that can decrypted in-browser (client side).",
"main": "index.js", "main": "index.js",
"files": [ "files": [