diff --git a/README.md b/README.md index 4468d97..ecad8db 100644 --- a/README.md +++ b/README.md @@ -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 @@ -46,4 +46,6 @@ Example usages: 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. + Thanks [Aaron Coplan](https://github.com/AaronCoplan) for bringing the CLI to life ! diff --git a/example.html b/example.html index 17b595f..85806ff 100644 --- a/example.html +++ b/example.html @@ -140,7 +140,7 @@ - + + + @@ -187,7 +191,7 @@ Your encrypted string */ var setFileToDownloadWithEmbeddedCrypto = function (data) { var request = new XMLHttpRequest(); - request.open('GET', 'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.min.js', true); + request.open('GET', 'kryptojs-3.1.9-1-lib.js', true); request.onload = function() { data['crypto_tag'] = '