I had a thought about the use of the SJCL and a different use case.
The setup: Say I have a directory of multi media files and I want to provide a nice index page I might use a TiddlyWiki where each entry was a tiddler with its
_cononical_uri set. This way it seems like one wiki but the bulk of the data is still separate files. It means they can be deep linked if I wish and the index wiki loads quickly (less to download up front).
But it would be amazing if I could encrypt these files using SJCL and then also set the same password for the index wiki. When the wiki loads the content it can use the already entered password to decrypt the content in the client on the fly.
Is this even possible? And if so are there any tip on where to start looking for hook points (where the SJCL actually does the decryption/encryption, etc.). And can SJCL be used in Node to encrypt on the command line before uploading to a web server?
Is this even a good idea or not?