Can UploadTiddlerPlugin and EncryptionPlugin work together?

3 views
Skip to first unread message

Alexander Tsvetkov

unread,
Nov 9, 2009, 2:20:40 AM11/9/09
to TiddlyWiki
Is it possible to get working together the Bidix's upload/
uploadtiddler plugin along with the encryption plugin from
http://www.remotely-helpful.com/TiddlyWiki/TiddlerEncryptionPlugin.html?
Now EncryptionPlugin is wokring fine in my TW locally but not when
used along with UploadTiddlerPlugin.

FND

unread,
Nov 9, 2009, 5:07:35 AM11/9/09
to tiddl...@googlegroups.com
> EncryptionPlugin is wokring fine in my TW locally but not when
> used along with UploadTiddlerPlugin.

What happens, exactly*?

I'm not intimately familiar with the internals of either plugin, but
don't see why the TiddlerEncryptionPlugin would interfere (it's all just
data after all).


-- F.


* cf. http://www.tiddlywiki.org/wiki/Troubleshooting

Alexander Tsvetkov

unread,
Nov 9, 2009, 2:18:35 PM11/9/09
to TiddlyWiki
When I use it locally I create a tiddler I want to encrypt, tag it
Encrypt(something) and when I click save it asks me for the password
of (something) and encrypts it. So when I reopen that TW and click
decrypt it will ask me for that password.
When I use it online thou when I create a tiddler and tag it Encrypt
(something) it still asks for a password but never encrypts anything
on upload. I think it has to do something with EncryptionPlugin
working only on save and UploadPlugin saving the TW in some other way.

Lyall

unread,
Nov 9, 2009, 6:17:22 PM11/9/09
to TiddlyWiki
Maybe, if you renamed TiddlerEncryptionPlugin to
'ZTiddlerEncryptionPlugin', so that it loads after
UploadTiddlerPlugin, that way, when TiddlerEncryptionPlugin overrides
the 'save', it overrides the 'UploadTiddlerPlugin' save, not the other
way around.

...Lyall

Alexander Tsvetkov

unread,
Nov 10, 2009, 3:50:24 AM11/10/09
to TiddlyWiki
Thanks for the suggestion. Just tried it but there's no change - it's
still not encrypting anything on save.

Lyall

unread,
Nov 10, 2009, 5:41:31 AM11/10/09
to TiddlyWiki
Ok, I have had a quick look at upload.
I wrote TiddlerEncryptionPlugin (TEP) quite a while ago.

TEP overrides store.getSaver().externalizeTiddler and saveChanges().

saveChanges() is the code that is executed when you click the 'save
changes' button.

The Upload plugin does not override the save changes mechanism nor
does it utilise the externalizeTiddler() function.

A special version of TiddlerEncryptionPlugin would need to override
the config.macros.upload.handler.

Alternatively, it would be nice if the upload plugin actually overrode
the save code.

I am a bit busy tonight, but sometime over the next few days I may get
motivated to whip up an enhancement such that TiddlerEncryptionPlugin
will 'override' Upload plugin to allow encryption of tiddlers prior to
upload.

Unless, of course, someone beats me to it and sends me the update :-)

...Lyall
Reply all
Reply to author
Forward
0 new messages