Re:Simple XMPP command line client
by matthias_hmb on Monday February 14, 2022 @01:44AM
(#30328994)
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
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