1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-24 08:02:33 +03:00
Easily and securely send things from one computer to another 🐊 📦
Go to file
2017-10-17 22:21:10 -06:00
vendor Vendoring 2017-10-17 18:58:16 -06:00
connect.go Send meta data in one chunk 2017-10-17 22:21:10 -06:00
crypto_test.go Encryption works, cleanup is good 2017-10-17 21:15:48 -06:00
crypto.go Handle more errors 2017-10-17 22:12:35 -06:00
Gopkg.lock Vendoring 2017-10-17 18:58:16 -06:00
Gopkg.toml Vendoring 2017-10-17 18:58:16 -06:00
main.go Turn off decryption 2017-10-17 22:03:48 -06:00
README.md Update README.md 2017-10-17 19:36:11 -06:00
relay.go Fixed hash 2017-10-17 20:33:27 -06:00

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.