Better HN
topnewbestaskshowjobs
Log inSign up

matthias_hmb

43 karma · joined Feb 13, 2022 (4y ago) · 5 submissions

Submissions

comment 4y ago · link · parent

I just realized, depending on the project, if both sides use that txmppc, any encryption (age, gpg) would work (not with other xmpp client compatible):

sender: echo "m CRYPT:encrypted_message" | txmppc

receiver: txmppc | while read line; do crypt = "${line#*CRYPT:}"; if [ "$line" != "$crypt" ]; then echo "$crypt" | decrypt; else echo "$line"; fi; done

comment 4y ago · link · parent

Thanks for that hint. I added command 'r' to send a raw stanza, so a script would work like this:

BASE64_OPENPGP_MESSAGE=$(echo "message" | gpg | b64)"

echo "r <message to='juliet@example.org'><openpgp xmlns='urn:xmpp:openpgp:0'>${BASE64_OPENPGP_MESSAGE}</openpgp></message>" | txmppc

comment 4y ago · link · parent

Yes, I would like too... and I see that OMEMO seems to be the current and best protocol for xmpp. But I found only one library and the implementation in profanity. I'm not a crypto guy and I don't understand it, so if there is a simple way to add it (as optional) compile dependency, I will do. But messing up with crypto doesn't sound like a good way to go. In mcabber is the option to send commands with a fifo, so it would be possible to send (GPG and OTR) encrypted messages. With profanity, it might be possible by writing a plugin.

comment 4y ago · link · parent

Thanks, I didn't know about jj and I like that approach too. If jj is inspired by ii, than txmppc is maybe more like sic from design. (But sic is really more minimalistic)

5.

Simple XMPP command line client(holmeinbuch.de ↗)

73 points · by matthias_hmb · 4y ago · 9 comments