Go to file
Zack Scholl 8fa40cf95c Add more trimming 2017-10-17 21:52:27 -06:00
vendor Vendoring 2017-10-17 18:58:16 -06:00
Gopkg.lock Vendoring 2017-10-17 18:58:16 -06:00
Gopkg.toml Vendoring 2017-10-17 18:58:16 -06:00
README.md Update README.md 2017-10-17 19:36:11 -06:00
connect.go Add more trimming 2017-10-17 21:52:27 -06:00
crypto.go Send sha256sum and check it Fixes #2 2017-10-17 21:28:32 -06:00
crypto_test.go Encryption works, cleanup is good 2017-10-17 21:15:48 -06:00
main.go Store file data in memory when transfering 2017-10-17 21:40:20 -06:00
relay.go Fixed hash 2017-10-17 20:33:27 -06:00

README.md

croc

File transfer over parallel TCP with a rendezvous server.

This is more or less a Golang port of magic-wormhole except it probably isn't secure.

Install

go get github.com/schollz/croc

Basic usage

Send a file

On computer 1 do:

$ croc -send somefile
Your code phrase is now limbo-rocket-gibson
waiting for other to connect

Receive a file

Just type croc and you'll be prompted for the code phrase. Use the code phrase to get the file.

$ croc 
What is your code phrase? limbo-rocket-gibson
   0s [====================================================] 100%

Downloaded somefile!

Advanced usage

Make your own rendezvous server

On some server you have, your-server.com, just run

$ croc -relay

Now, when you use croc to send and receive you can add -server your-server.com to use your rendezvous server.