I did try to using all versions.
Versions V4.5 and V4.6 not have chat.htm in archive.
Only v2.4 working (from chatneu folder inside):
1. Unzip v2.4.
2. add chatneu folder to HFS as real folder.
3. go to
http://IP:port/chatneu/chat.htm4. name: user, text: "test from user".
Now I can check chat.txt file content, in the added folder "chatneu".
Test public chat:
1. Go from another computer to
http://IP:port/chatneu/chat.htm2. User: testuser, see messages from user.
3. text: "test from testuser".
User and testuser see this. OK.
But in this template I see an "..."-error.
Test private messages:
1. Name: user -> to testuser; text -> "test private message from user to testuser"
2. user see this message, testuser see "..."
3. Response from testuser: test -> "Do not see your message, user!"
4. testuser see his message, user see "..."
Chat history for user:
26.07.2018 19:48:30 --- testuser>> ...
26.07.2018 19:47:47 --- user>>testuser test private message from user to testuser
26.07.2018 19:46:35 --- testuser> test from testuser
26.07.2018 19:46:26 --- testuser hat den Chat betreten.
26.07.2018 19:45:21 --- user> test from user
26.07.2018 19:44:57 --- user hat den Chat betreten.
Chat history for testuser:
26.07.2018 19:48:30 --- testuser>>user Do not see your message, user!
26.07.2018 19:47:47 --- user>> ...
26.07.2018 19:46:35 --- testuser> test from testuser
26.07.2018 19:46:26 --- testuser hat den Chat betreten.
26.07.2018 19:45:21 --- user> test from user
26.07.2018 19:44:57 --- user hat den Chat betreten.
chat.txt content in chatneu folder:
26.07.2018 19:39:38 --- <b>testuser</b>> <span style="color:#000000">Do not see your message, user!</span><br>
26.07.2018 19:38:46 --- <b>user</b>> >testuser <span style="color:#000000">testing testuser</span><br>
26.07.2018 19:38:09 --- <b>testuser</b>> <span style="color:#000000">test message from testuser</span><br>
26.07.2018 19:37:59 --- <i> testuser hat den Chat betreten.</i><br>
26.07.2018 19:37:20 --- <b>user</b>> <span style="color:#000000">test</span><br>
26.07.2018 19:36:55 --- <i> user hat den Chat betreten.</i><br>
As you can see, when one user write to another user the private message,
this user can see this message, but another user saw "...".
Message not displaying for another user and users cann't read private messages,
but in file chat.txt this data is exists.
I see chat.htm in v3.1, but there is no any TO field, and old chat.htm not working
(cann't fill name and don't see prompt to do this.)
Can anyone fix this?
Also,
How to using another versions with chat.htm? This file no found there...Is this possible?
P.S.:First idea that I have to display private message - download using XHR,
the file chat.txt from "chatneu" folder, and parse this file on client side using JS.
But in this case anyone can read private messages.
So this can be encrypted by assymetric encryption, using JS NaCl (like toxcore),
and "libsodium" JS library, for example, and saved as hex in the chat.txt.
There can be generated public key by passphrase.
Here you can see static public and secret key from static seed "hello":
Keypair - from seed (Uint8Array) "hello" in HEX:
Secret key: 9B71D224BD62F3785D96D46AD3EA3D73319BFBC2890CAADAE2DFF72519673CA7
Public key: D8333ECF53DAC465D59F3B03878CEFF88947EEC57C965105A049A0F5F1B7A510
And also you can see there and
example of assimetryc encryption and decription.
sha256-hashfrom username and password (need to add, then),
can be seed string to generate nacl keypair,
and when username connected to the chat, then he can share his
public key to anyone else.
In this case, any user who write to him private message, can do encryption of this message,
using public key of this user. Result can be saved as encrypted hex in
chat.txt.
Then, user can do client-side JavaScript decryption of this message,
by using his temporary secret private key.
Best regards.