Thursday, December 10, 2009

encrypted chat using builtin tools

gpg chat via nc
this is just the start...

client:

mkfifo pipe
while true; do cat 0
while read line; do echo -e ${line} \\n\\n| gpg --yes -ca --passphrase dog --output=pipe - 2>/dev/null; done

server:

mkfifo pipe
while true; do nc -q1 -l -p 10000 > pipe; done

do cat < pipe | gpg -qd --passphrase dog --output=- - 2>/dev/null;done

No comments:

Post a Comment