Skip to content

Practice project: communicate over tcp using encrytion with ssh keys

License

Notifications You must be signed in to change notification settings

mehiX/crypto-rsa-tcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Practice project: communicate over tcp using encrytion with ssh keys

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages