diff --git a/README.md b/README.md index 9e5f27d..7c39c37 100644 --- a/README.md +++ b/README.md @@ -43,14 +43,14 @@ staticrypt test.html ```bash # 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 ``` -**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 -find . -type f -name "*.html" -exec staticrypt {} MY_LONG_PASSWORD \; +find . -type f -name "*.html" -exec staticrypt {} -p MY_LONG_PASSWORD \; ``` ### CLI Reference diff --git a/package-lock.json b/package-lock.json index b9a49f0..be6145e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "staticrypt", - "version": "3.0.0", + "version": "3.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "staticrypt", - "version": "3.0.0", + "version": "3.0.1", "license": "MIT", "dependencies": { "crypto-js": "3.1.9-1", diff --git a/package.json b/package.json index 574a6af..d7c1a05 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "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).", "main": "index.js", "files": [