Practice project: send short messages over tcp using encrytion with ssh keys
Uses openssh key pairs, not protected by password
Create private and public keys:
ssh-keygen -t rsa -b 2048 -f ./test
Build the project:
go vet ./...
go build ./cmd/sendenc
go build ./cmd/receiveenc
Start the receiver:
./receiveenc
Send a short message:
echo "This is my message" | ./sendenc
# sample output
# Sent XXX bytes
cat README.md | go run ./cmd/rsawithkey -k ./test.pub | go run ./cmd/rsawithkey -d -k ./test