TiddlerEncryptionPlugin - bug found - update pending but workaround exists.

2 views
Skip to first unread message

Lyall

unread,
Sep 18, 2008, 5:43:40 AM9/18/08
to TiddlyWiki
I have discovered an obscure bug in TiddlerEncryptionPlugin.

The symptom is that you save and a tiddler refuses to decrypt, when
you know you have the right password.

The cause is that the tiddler is an exact number (I have not
determined the value yet) of characters long, whereby the Base64
encoded data in the tiddlywiki has the </pre> on a line by itself.

Eg. Inside your TiddlyWiki.html

<div title="LoginPassword" modifier="LyallPearce"
created="200708181243" modified="200809180935" tags="Passwords Eds
EdsApac excludeMissing Decrypt(standard) excludeLists"
changecount="6">
<pre>Encrypted(F47094DEA56956134185F98DD64F196DD84D7617)
1b2bc7a9c2f4ecfb10c3914ac87f56afe47c1fcb1f213921b9acfdedb98472e83c
333921685fa8612f75f6da9fe152c185665c42e599dc88dbf408bd3f10362e3e
750f374d185a85a71cb548689d83772d7becf7542c7e2ad51e944ba2063ed37f
9095403291729f2131363021c221313321bdedf4c39d51bd75fdf2213131217e
</pre>
</div>

I have not determined if it's the actual decryption or the Base64
decoding that is the problem (yet).

However, I have found a fix, for those of you that encounter this
problem. Edit your tiddlywiki in your favorite text editor, locate the
tiddler you know has a problem and move the </pre> up to the end of
the last line.

Eg.

<div title="LoginPassword" modifier="LyallPearce"
created="200708181243" modified="200809180935" tags="Passwords Eds
EdsApac excludeMissing Decrypt(standard) excludeLists"
changecount="6">
<pre>Encrypted(F47094DEA56956134185F98DD64F196DD84D7617)
1b2bc7a9c2f4ecfb10c3914ac87f56afe47c1fcb1f213921b9acfdedb98472e83c
333921685fa8612f75f6da9fe152c185665c42e599dc88dbf408bd3f10362e3e
750f374d185a85a71cb548689d83772d7becf7542c7e2ad51e944ba2063ed37f
9095403291729f2131363021c221313321bdedf4c39d51bd75fdf2213131217e</pre>
</div>

Then, open, decrypt and add a single character to the tiddler contents
to make the problem go away.

I fully intend to generate a fix for this, when I figure out what the
exact cause. Worst case is I simply fix the symptom by detecting this
particular case and removing the trailing newline.

Stay tuned.

...Lyall

Reply all
Reply to author
Forward
0 new messages