Created
April 13, 2016 07:00
-
-
Save homam/5dd7ecd8400bf3863b877594ee7f45f7 to your computer and use it in GitHub Desktop.
encrypt messages from server to client with nc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# server | |
while true; do read ui; echo $ui | openssl enc -aes128 -a -k PaSSw; done | nc -vl 192.168.1.2 1300 | |
# client | |
nc 192.168.1.2 1300 | while read so; do decoded=`echo "$so" | openssl enc -d -a -aes128 -k PaSSw`; echo "$decoded"; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment