Set password on Node.js

237 views
Skip to first unread message

David SZERMAN

unread,
Jun 24, 2021, 5:05:04 AM6/24/21
to TiddlyWiki
Hello,

i have Tiddlywiki on Node.js ; I was used to the standalone file in which I set up a password.

i want to do the same on node.js but it seems not to be saved.

Do you face the same kind of issue ? Any workaround ?

PMario

unread,
Jun 24, 2021, 5:42:04 AM6/24/21
to TiddlyWiki
On Thursday, June 24, 2021 at 11:05:04 AM UTC+2 szd...@gmail.com wrote:

i have Tiddlywiki on Node.js ; I was used to the standalone file in which I set up a password.

The password you set for the stand-alone wiki is used to encrypt the whole wiki, when it is saved. So nobody can read it without the password.
 
The password you set for a node-js server is a password to access the server. It has nothing to do with encryption.

As far as I know, it's not possible to encrypt nodejs wikis atm.

Do you face the same kind of issue ? Any workaround ?

Depending on the OS you use, you may save your data on an encrypted drive, which is mounted when you log in. So the OS can handle encryption for you, if you need it.

-mario
 

David SZERMAN

unread,
Jun 24, 2021, 6:10:56 AM6/24/21
to TiddlyWiki
Thanks ; actually, it is on the web / debian / Yunohost...

Does the "set password" button is the same for the single file and the node server ?

PMario

unread,
Jun 24, 2021, 7:11:06 AM6/24/21
to TiddlyWiki
On Thursday, June 24, 2021 at 12:10:56 PM UTC+2 szd...@gmail.com wrote:
Thanks ; actually, it is on the web / debian / Yunohost...

OK. Then I don't know how this could be solved on the server level. .. I don't know the software, but you could have a look at the docs about encryption. ...
 
Does the "set password" button is the same for the single file and the node server ?

You are right. ...BUT node-js server has no encryption built in and the single-page wiki only allows to encrypt everything or nothing.

I don't know, it the "single tiddler encryption plugin" works with a nodejs server. I didn't test it. You may have a look at: https://danielorodriguez.com/TW5-EncryptTiddlerPlugin/ ... Only needed if you need encryption.

-mario


PMario

unread,
Jun 24, 2021, 7:26:35 AM6/24/21
to TiddlyWiki
On Thursday, June 24, 2021 at 1:11:06 PM UTC+2 PMario wrote:

I don't know, it the "single tiddler encryption plugin" works with a nodejs server. I didn't test it. You may have a look at: https://danielorodriguez.com/TW5-EncryptTiddlerPlugin/ ... Only needed if you need encryption.

It works with a node-js server BUT it doesn't make much sense. .. Because as soon as you decrypt a tiddler in the browser, it will be written in plain text to the server.

If you encrypt the tiddler again, it will be encrypted and written to the server. The old tiddler would be deleted, but still it has been written in plain text already. ... So you need to decide if this is good enough for you.

For me it wouldn't be good enough, because the chances that plain text is kept on the server by accident is way to high. .... But that's just me ;)

It may be possible to modify the plugin in a way, that decrypted tiddlers are only kept in the browser memory as a "$:/temp/xxx" tiddler. So it wouldn't be sent to the server. .. You would need to ask Danielo, the author of the plugin, if he still does some development.


-mario

PMario

unread,
Jun 24, 2021, 7:54:15 AM6/24/21
to TiddlyWiki

David SZERMAN

unread,
Jun 24, 2021, 7:58:52 AM6/24/21
to TiddlyWiki
Actually, for me it was a password thing, not necessary an encryption topic. My objective is to protect by password my wiki  :-)

PMario

unread,
Jun 24, 2021, 8:04:07 AM6/24/21
to TiddlyWiki
On Thursday, June 24, 2021 at 1:58:52 PM UTC+2 szd...@gmail.com wrote:
Actually, for me it was a password thing, not necessary an encryption topic. My objective is to protect by password my wiki  :-)

But it is exactly that. If you ever forget your password, the content is gone. There is no known mechanism to restore it. ....

--------------


-mario

Saq Imtiaz

unread,
Jun 24, 2021, 8:14:39 AM6/24/21
to TiddlyWiki
It is pretty cool that Yunohost has TW on node.js as an application they support.

You likely need to change the command used to start the node.js sever to use authentication.

On Thursday, June 24, 2021 at 12:10:56 PM UTC+2 szd...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages