Hi LinOneTwo It sounds like you want this to work with existing syncadaptors. Perhaps it’s possible to write a proxy syncadaptor that presents itself to the syncer, invoking the real underlying syncadaptor to perform data transfer, and doing the encryption/decryption itself.
Best wishes Jeremy > On 12 Apr 2020, at 16:27, LinOnetwo <[email protected]> wrote: > > Hi, I'd like to push TW5-EncryptTiddlerPlugin a step forward. > > I want my wiki to work like Notion, so I can mix Public and Private content > in one wiki, and tag some content to be Public. > > So I need to encrypt tiddler with for example "EncryptThis" tag just before > any SyncAdaptor, e.g., NodeJS SyncAdaptor executes the saveTiddler() > > And I need to decrypt tiddler withi such tag, just after any SyncAdaptor > executes the loadTiddler() . > > --- > > Only in this way, can we achieve following goals: > > 1. On browser that has enter the password ( I will remember password in the > browser localstorage ) , all tiddlers are always visible, and searchable. ( > Only when tiddler is sync back to nodejs, it become encrypted ) > 2. When I backup tiddlers to Github, Private tiddlers are always encrypted > > --- > > Additional context: > > I'm using NodeJS wiki in localhost, use WebCatalog to make it DesktopApp and > MenuBarAPP. > And I backup tiddlers to Github. > A CI will build HTML from tiddler files after git push, and serve it as a > website. > > --- > > Conculsion: I need to hook in SyncAdaptor life cycle, or write a middleware > for SyncAdaptor. Does anyone know if there is an API to do so? > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWikiDev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywikidev/ffbca28a-a263-4873-ad42-bbae0fee6f31%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywikidev/ffbca28a-a263-4873-ad42-bbae0fee6f31%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/7829AD78-0EAB-411B-A099-132CB6C2B09A%40gmail.com.
