EncryptWidget - deprecated or what is it?

64 views
Skip to first unread message

Mat

unread,
Mar 10, 2018, 7:19:33 AM3/10/18
to TiddlyWiki
https://tiddlywiki.com/#EncryptWidget

This ol' doc from 2013 implies that individual tiddlers can be encrypted by use of <$encrypt>. It also has missing links to ambitious sounding docs.

Was this an old feature, now deprecated? Does it have to do with the https://tiddlywiki.com/#Encryption which concerns encrypting the whole TW, not individual tids?

How use? - Or should it just be removed from docs? @Jeremy

Thanx

<:-)

@TiddlyTweeter

unread,
Mar 10, 2018, 7:52:36 AM3/10/18
to TiddlyWiki
Mat

https://tiddlywiki.com/#EncryptWidget
Looks like something out of step.

My understanding is you can in basic TW encrypt the whole tamoli, but not parts.

https://tiddlywiki.com/#Encryption
Should "allows content to be encrypted", in the latest docs, be changed to "allows the TiddlyWiki to be encrypted"?

For individual Tiddler encryption one needs a plugin like Danielo's--I think.

Josiah

Mat

unread,
Mar 10, 2018, 7:58:14 AM3/10/18
to TiddlyWiki
@TiddlyTweeter - yes, this is what I also think the status is.

@Jeremy - should the doc perhaps simply be removed? (I'm not sure how to do a PR for that).

<:-)

Mat

unread,
Mar 10, 2018, 7:59:20 AM3/10/18
to TiddlyWiki
...cont: 


@Jeremy - should the doc perhaps simply be removed? (I'm not sure how to do a PR for that).


...and the widget along with it? Or what is it used for?

<:-) 

PMario

unread,
Mar 10, 2018, 8:00:11 AM3/10/18
to TiddlyWiki
On Saturday, March 10, 2018 at 1:19:33 PM UTC+1, Mat wrote:
https://tiddlywiki.com/#EncryptWidget

This ol' doc from 2013 implies that individual tiddlers can be encrypted by use of <$encrypt>. It also has missing links to ambitious sounding docs.

The doc doesn't talk about single tiddlers. .. It says a filtered list of tiddlers. If the filter param is not there it uses all of them. ... That's it.

-m

Jeremy Ruston

unread,
Mar 10, 2018, 8:06:51 AM3/10/18
to tiddl...@googlegroups.com
The <$encrypt> widget is the means by which the encrypted single file TiddlyWiki is encrypted. Have a look at the template used to generate the tiddler store area:


Best wishes

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/bfed8b61-557f-47b4-b131-a884208b62ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeremy Ruston

unread,
Mar 10, 2018, 8:07:51 AM3/10/18
to tiddl...@googlegroups.com
By the way, if you're investigating something like this in the future, it's handy to search for (in this case) “<$encrypt” across the system tiddlers just to see where and how it is being used in the core.

Best wishes

Jeremy.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Mat

unread,
Mar 10, 2018, 8:11:37 AM3/10/18
to TiddlyWiki


On Saturday, March 10, 2018 at 2:00:11 PM UTC+1, PMario wrote:

The doc doesn't talk about single tiddlers. .. It says a filtered list of tiddlers. If the filter param is not there it uses all of them. ... That's it. 

Yeah, but since there is a filter param it should be possible to only encrypt a single tiddler - but how then?

Thanx

<:-) 

@TiddlyTweeter

unread,
Mar 10, 2018, 8:13:53 AM3/10/18
to TiddlyWiki
Ciao Jeremy

Currently I think the documentation is ambiguous. I suggest ...


https://tiddlywiki.com/#Encryption
Should "allows content to be encrypted", in the latest docs, be changed to "allows the TiddlyWiki to be encrypted"?

Best wishes
Josiah

Jeremy Ruston

unread,
Mar 10, 2018, 8:21:41 AM3/10/18
to tiddl...@googlegroups.com
Hi Josiah

Currently I think the documentation is ambiguous. I suggest ...

https://tiddlywiki.com/#Encryption
Should "allows content to be encrypted", in the latest docs, be changed to "allows the TiddlyWiki to be encrypted”?

Perhaps it’s clearer to draw a distinction between the functionality of the widget (to return an encrypted JSON representation of a list of tiddlers identified by a filter) and its current usage (to support encryption of single file TiddlyWikis).

The point is that this is a perfectly general purpose widget (albeit very low level), and can be interesting to experiment with. It could be used as the basis, say, of a plugin that encrypts other tiddlers.

Best wishes

Jeremy.



Best wishes
Josiah

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Mat

unread,
Mar 10, 2018, 8:25:18 AM3/10/18
to TiddlyWiki
On Saturday, March 10, 2018 at 2:07:51 PM UTC+1, Jeremy Ruston wrote:
By the way, if you're investigating something like this in the future..

You're right. My bad.

...

I agree with Josiah, the doc is ambiguous. I'll make a PR.

<:-)

@TiddlyTweeter

unread,
Mar 10, 2018, 8:50:40 AM3/10/18
to TiddlyWiki
Ciao Jeremy

Jeremy wrote: 

The point is that this is a perfectly general purpose widget (albeit very low level), and can be interesting to experiment with. It could be used as the basis, say, of a plugin that encrypts other tiddlers.

I guess that is what Danielo drew upon when he made his single Tiddler encrypter?

Its an interesting issue of scope of what you "intimate" in documentation. Mat, like me, I think, was focusing on explicits (stuff it does), not implicit potentials (stuff it might do).

Best wishes
Josiah

Mat

unread,
Mar 10, 2018, 8:55:37 AM3/10/18
to TiddlyWiki
On Saturday, March 10, 2018 at 2:21:41 PM UTC+1, Jeremy Ruston wrote:

Perhaps it’s clearer to draw a distinction between the functionality of the widget (to return an encrypted JSON representation of a list of tiddlers identified by a filter) and its current usage (to support encryption of single file TiddlyWikis). 

The point is that this is a perfectly general purpose widget (albeit very low level), and can be interesting to experiment with. It could be used as the basis, say, of a plugin that encrypts other tiddlers.


OK, in light of this I feel I'm not qualified to make a PR to update the docs. 

(BTW some quick experimenting turned out tricky because the existing instances of the widget uses saveTiddlerFilter as filter but opening any tid that contains this freezes up the TW.)

<:-)

Mark S.

unread,
Mar 10, 2018, 9:50:43 AM3/10/18
to TiddlyWiki
"Your bad" because you didn't spelunk the source code? I think not. It reminds me of this Dilbert classic: http://dilbert.com/strip/1994-02-01

After some fiddling ...

\define encmac() <$encrypt filter='[tag[HelloThere]]'/>

<$wikify name=enc type="text" text=<<encmac>>>
<$button>Hide My Stuff
<$action-setfield $tiddler="MyStuff" $field="text" $value=<<enc>> />
</
$button>

</$wikify>

Will stash away encrypted text if a password has been set. The thing is, how do you decrypt it? There's no corresponding <$decrypt> widget.

-- Mark

@TiddlyTweeter

unread,
Mar 10, 2018, 10:10:11 AM3/10/18
to TiddlyWiki
"There's no corresponding <$decrypt> widget."

Jeremy Ruston

unread,
Mar 10, 2018, 10:21:25 AM3/10/18
to tiddl...@googlegroups.com
There is indeed no corresponding decrypt widget. Decryption of the single file TiddlyWiki has to be done during the boot process:


Best wishes

Jeremy
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Jeremy Ruston

unread,
Mar 10, 2018, 10:22:07 AM3/10/18
to tiddl...@googlegroups.com
"Your bad" because you didn't spelunk the source code? I think not.

Yes indeed, my comment was intended to be helpful, not an admonishment!

Best wishes

Jeremy.


--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Mat

unread,
Mar 10, 2018, 10:35:24 AM3/10/18
to TiddlyWiki
On Saturday, March 10, 2018 at 3:50:43 PM UTC+1, Mark S. wrote:
"Your bad" because you didn't spelunk the source code? I think not. It reminds me of this Dilbert classic: http://dilbert.com/strip/1994-02-01

Hehe! Well, his - or at least my - point is that I'm definitely experienced enough to know I should do a proper search before asking ;-)

 
Will stash away encrypted text if a password has been set. The thing is, how do you decrypt it? There's no corresponding <$decrypt> widget.

Ha! both interesting and funny

<:-) 
Reply all
Reply to author
Forward
0 new messages