mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-12-10 18:58:09 +00:00
Add Stanford JavaScript Crypto Library for encryption of tiddlers
Initial implementation. The password is hardcoded on the server, but properly prompted in the browser.
This commit is contained in:
60
core/templates/tiddlywiki5.encrypted.template.html.tid
Normal file
60
core/templates/tiddlywiki5.encrypted.template.html.tid
Normal file
@@ -0,0 +1,60 @@
|
||||
title: $:/core/templates/tiddlywiki5.encrypted.template.html
|
||||
type: text/x-tiddlywiki-html
|
||||
|
||||
<!doctype html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="application-name" content="TiddlyWiki" />
|
||||
<meta name="generator" content="TiddlyWiki" />
|
||||
<meta name="tiddlywiki-version" content="<<version>>" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<meta name="copyright" content="
|
||||
<<serialize "$:/core/copyright.txt" text/plain>>
|
||||
" />
|
||||
<title><<tiddler "$:/core/wiki/title">></title>
|
||||
<!----------- This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ----------->
|
||||
|
||||
<!----------- Raw markup ----------->
|
||||
<<serialize "[tag[$:/core/wiki/rawmarkup]]" text/plain>>
|
||||
</head>
|
||||
<body>
|
||||
<!----------- Static styles ----------->
|
||||
<div id="styleArea">
|
||||
<<serialize "[is[shadow]type[text/css]]" application/x-tiddler-css>>
|
||||
</div>
|
||||
<!----------- Static content for Google and browsers without JavaScript ----------->
|
||||
<noscript>
|
||||
<div id="splashArea">
|
||||
<<serialize "$:/templates/StaticContent" text/html>>
|
||||
</div>
|
||||
</noscript>
|
||||
<!----------- Miscellaneous shadow tiddlers ----------->
|
||||
<div id="shadowArea" style="display:none;">
|
||||
<<serialize "[is[shadow]] -[type[text/css]] -[type[application/javascript]has[module-type]] -[type[application/javascript]library[yes]] -[[$:/core/boot.js]] -[[$:/core/bootprefix.js]]" application/x-tiddler-encrypted-div>>
|
||||
</div>
|
||||
<!----------- Ordinary tiddlers ----------->
|
||||
<div id="storeArea" style="display:none;">
|
||||
<<serialize "$1" application/x-tiddler-encrypted-div>>
|
||||
</div>
|
||||
<!----------- Library modules ----------->
|
||||
<div id="libraryModules" style="display:none;">
|
||||
<<serialize "[[$:/core/lib/jquery.min.js]]" application/x-tiddler-library>>
|
||||
<<serialize "[is[shadow]type[application/javascript]library[yes]] -[[$:/core/lib/jquery.min.js]]" application/x-tiddler-library>>
|
||||
</div>
|
||||
<!----------- Boot kernel prologue ----------->
|
||||
<div id="bootKernelPrefix" style="display:none;">
|
||||
<<serialize "$:/core/bootprefix.js" application/javascript>>
|
||||
</div>
|
||||
<!----------- Plugin modules ----------->
|
||||
<div id="modules" style="display:none;">
|
||||
<<serialize "[is[shadow]type[application/javascript]has[module-type]]" application/x-tiddler-module>>
|
||||
</div>
|
||||
<!----------- Boot kernel ----------->
|
||||
<div id="bootKernel" style="display:none;">
|
||||
<<serialize "$:/core/boot.js" application/javascript>>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user