kopia lustrzana https://github.com/robinmoisson/staticrypt
CLI: change embed default to true + bump minor
rodzic
758e12440d
commit
6508c4ae36
|
@ -28,7 +28,7 @@ Staticrypt is available through npm as a CLI, install with `npm install -g stati
|
|||
--help Show help [boolean]
|
||||
--version Show version number [boolean]
|
||||
-e, --embed Whether or not to embed crypto-js in the page (or use an
|
||||
external CDN) [boolean] [default: false]
|
||||
external CDN) [boolean] [default: true]
|
||||
-o, --output File name / path for generated encrypted file
|
||||
[string] [default: null]
|
||||
-t, --title Title for output HTML page
|
||||
|
@ -44,3 +44,5 @@ Example usages:
|
|||
- `find . -type f -name "*.html" -exec staticrypt {} mypassword \;` -> create encrypted files for all HTML files in your directory (recursively)
|
||||
|
||||
You can use a custom template for the password prompt - just copy `cli/password_template.html` and modify it to suit your presentation style and point to your template file with the `-f` flag. Be careful to not break the encrypting javascript part, the variables replaced by staticrypt are between curly brackets: `{instructions}`.
|
||||
|
||||
**ADBLOCKERS**: If you do not embed crypto-js and serve it from a CDN, some adblockers see the `crypto-js.min.js`, think that's a crypto miner and block it.
|
|
@ -17,7 +17,7 @@ const namedArgs = Yargs
|
|||
alias: 'embed',
|
||||
type: 'boolean',
|
||||
describe: 'Whether or not to embed crypto-js in the page (or use an external CDN)',
|
||||
default: false
|
||||
default: true
|
||||
})
|
||||
.option('o', {
|
||||
alias: 'output',
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "staticrypt-cli",
|
||||
"version": "1.1.2",
|
||||
"version": "1.2.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "staticrypt",
|
||||
"version": "1.1.2",
|
||||
"version": "1.2.0",
|
||||
"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",
|
||||
"bin": {
|
||||
|
|
Ładowanie…
Reference in New Issue