Using Termux to create a tiny selfhosted hidden chat server with E2EE.
from hereforawhile@lemmy.ml to selfhosted@lemmy.world on 03 Oct 15:45
https://lemmy.ml/post/37030874

This can be installed with a 15kb install script that compiles all resources and hosts the server right in your pocket.

#selfhosted

threaded - newest

hereforawhile@lemmy.ml on 03 Oct 15:49 next collapse

<img alt="here is another screenshot of how it looks after install" src="https://lemmy.ml/pictrs/image/65350e81-5e9f-4b3b-adf5-fe500c553ac8.jpeg">

CIA_chatbot@lemmy.world on 03 Oct 16:04 next collapse

Is there a link?

hereforawhile@lemmy.ml on 03 Oct 17:11 next collapse

Working on a slightly more polished version. I can release soon.

CIA_chatbot@lemmy.world on 03 Oct 17:23 next collapse

Thanks, looks cool

solrize@lemmy.ml on 03 Oct 19:05 collapse

Wow, it is cute. I’m still having trouble imagining using it, but I like the idea of a curses chat client under tmux.

hereforawhile@lemmy.ml on 03 Oct 18:11 collapse

Ok this is still super early but it’s working on the few devices I tried with a fresh install of termux.

pastebin.com/cRL6MnKe

Flatfire@lemmy.ca on 03 Oct 16:45 next collapse

Echoing the sentiment of the other commenter. A link would be great!

Geometrinen_Gepardi@sopuli.xyz on 03 Oct 16:53 next collapse

Was this coded on a phone touchscreen?

hereforawhile@lemmy.ml on 03 Oct 17:12 collapse

Yes

solrize@lemmy.ml on 03 Oct 19:06 collapse

OMG

Jayjader@jlai.lu on 03 Oct 18:35 next collapse

Kudos for developing this on your phone! I’ve played around with termux, even have a Bluetooth keyboard, but I’ve never had the courage to actually code through it.

solrize@lemmy.ml on 03 Oct 19:01 collapse

I don’t get it, how to other clients connect and do they use the same program? It does look cool though the tmux keyboard is bare bones.

hereforawhile@lemmy.ml on 03 Oct 19:24 collapse

The install script contains all the pieces needed to be the host server or just a client. Because termux allows you to run multiple sessions, if you are the host, you have to run the server in one session and then connect in a different session.

What’s not shown in the screen shot is that if you choose to host, a onion address is generated. This is how other clients connect.

solrize@lemmy.ml on 03 Oct 19:59 collapse

I did see some onion code in the script, but didn’t figure out that it was listening on an onion port. Cool. I’m not sure of the attraction of running it on a phone, but I’ll take your word for it ;). Do you actually use it? Yeah I can see wanting to reorganize it in some ways, and maybe try to use some more standard protocols (irc?) or a subset. Does tor not already provide its own crypto?

hereforawhile@lemmy.ml on 03 Oct 20:45 collapse

Yeah, tor is already encrypting between each node and since both clients are connecting to the rendezvous point inside of the Tor network it should already theoretically be encrypted E2E… The other crypto is just in case that’s not true… why not add other layers of encryption if you can.

No I don’t use it it’s kinda just a lil hobby. Nice to know I can depoly worldwide anonymous coms from my pocket though.

I have better more usable methods