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
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ The content is encrypted with AES-256 in Python using PyCryptodome, and decrypte
31
31
*~~Add optional obfuscation of file names. F.ex. to make it impossible to guess image names.~~
32
32
* Rework password handling or inventory of some sort
33
33
*~~As we are vulnerable to brute force: Review strenght of used passwords.~~
34
-
* download self-hosted cryptojs just once (check hash of js files)
34
+
*~~download self-hosted cryptojs just once (check hash of js files)~~
35
35
*~~Add button press to decrypt without password (just to hide content from search engines)~~
36
36
* ...to be defined
37
37
@@ -585,15 +585,17 @@ It is also possible to reload a script id like `<script id="autoexec">console.lo
585
585
### Self-host crypto-js
586
586
587
587
If you enable `selfhost` then you'll choose to upload crypto-js to your web server rather than using cloudflare CDN.
588
+
The self-host location is "SITE_URL/assets/javascripts/cryptojs/".
588
589
589
-
Additionally if you set `selfhost_download` then the required files will be downloaded **every time** on `mkdocs serve` or `mkdocs build`.
590
-
Be aware that this costs additional build time and it is better to copy the files from `site/assets/javascripts/cryptojs/*` to `docs/assets/javascripts/cryptojs/*` to speed things up.
590
+
Additionally if you set `selfhost_download` then the required files will be automatically downloaded if needed.
591
+
The files are checked for their MD5 hash and saved to `docs_dir` or `selfhost_dir` (relative to `mkdocs.yml`).
#TODO just download once and verify hash afterwards
631
-
logger.info('Downloading cryptojs for self-hosting... Please consider copying "assets/javascripts/cryptojs/" to "doc/" and setting "selfhost_download: false" to decrease build time.')
0 commit comments