Simple XMPP command line client
holmeinbuch.de
holmeinbuch.de
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
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
If you make it less bad I will accept any PRs!