It would be valuable if there was a CLI xmpp tool which could also encrypt... Then it could be used in home automation projects
If you make it less bad I will accept any PRs!
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
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