So, when a Tiddler is placed back into store, that is when you want the encyrption? If so, that should be a simple matter of overriding the save function, as you have done. I guess that would remove the need to override the serialisation function. Might have a look tonight.
...Lyall On Jun 20, 7:27 pm, FND <[email protected]> wrote: > My apologies for the late response, Lyall - I'm still rather busy at the > moment, so I didn't get around to replying... > > > After a bit of looking, I am unsure as to what is fundamentally > > different between your demo and my old plugin > > I now realize this isn't obvious at all - mainly due to the fact that > the code has grown far beyond what was originally anticipated... > > The basic difference is that my plugin operates directly on individual > tiddlers rather than the document as a whole. If I recall correctly, > your plugin's encryption occurs during serialization, when writing the > document to file. However, this is never triggered when sync'ing changes > to a server (whether manually or via the ServerSideSavingPlugin*). > > > are you asking for a 'Re-encrypt This' and a 'Re-Encrypt All' button > > which does not 'save' but simply operates locally? > > I'm not sure whether separate buttons are desirable - it seems like this > should be handled automatically, ensuring that the decrypted text is > never persisted. > > > This requirement was a bit silly, from my original perspective but > > times change > > This (even) more tiddler-centric view, with the tiddler (rather than the > document) as the basic unit, was brought about by various explorations > and experiences in recent years, including of course TiddlyWeb. It seems > to be in line with where the web is moving (again); individually > addressable chunks of atomic content. > > > an interesting coding style with variables being defined as functions > > Indeed, it can take some time to get used to functions as first-class > objects - but it's quite a powerful concept... > > -- F. > > * as used by both TiddlyWeb and > ccTiddly:http://svn.tiddlywiki.org/Trunk/association/plugins/ServerSideSavingP... -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywikidev?hl=en.
