Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 643 Bytes

README.md

File metadata and controls

42 lines (28 loc) · 643 Bytes

crypto-rsa-tcp

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

Use the TCP sender/receiver

Start the receiver:

./receiveenc

Send a short message:

echo "This is my message" | ./sendenc

# sample output
# Sent XXX bytes

Use the encoder/decoder

cat README.md | go run ./cmd/rsawithkey -k ./test.pub | go run ./cmd/rsawithkey -d -k ./test