News for hackers. Stuff that matters.
Re:Simple XMPP command line client by prash_ant on Sunday February 13, 2022 @02:39PM (#30324860)
I understand you can encrypt the message with gpg2 and then send the message with the CLI (perl based) script sendxmpp [1].

[1] https://packages.debian.org/bullseye/sendxmpp

Re:Simple XMPP command line client by matthias_hmb on Monday February 14, 2022 @01:36AM (#30328965)
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='[email protected]'><openpgp xmlns='urn:xmpp:openpgp:0'>${BASE64_OPENPGP_MESSAGE}</openpgp></message>" | txmppc