Hacker News new | ask | show | jobs
by prash_ant 1587 days ago
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

1 comments

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