
croc
Secure file transfer tool that enables any two computers to transfer files using end-to-end encryption and relay servers
croc is a command-line file transfer tool that enables secure file sharing between any two computers without requiring local servers or port forwarding. It uses password-authenticated key agreement (PAKE) to establish end-to-end encryption and relay servers to connect devices across different networks.
The tool supports cross-platform transfers between Windows, Linux, and Mac systems. Key capabilities include transferring multiple files and folders, resuming interrupted transfers, IPv6-first connectivity with IPv4 fallback, and proxy support including Tor. Files are sent using a generated code phrase that recipients use to retrieve the transfer.
croc targets users who need to transfer files between computers across different networks securely. It handles various use cases including piping data through stdin/stdout, sending text snippets, displaying QR codes for mobile devices, and custom relay server deployment. The tool can be used in automation scenarios with quiet mode and supports configuration options like custom encryption curves and hash algorithms.
Installation
# via Homebrew
brew install croc
# via Curl script
curl https://getcroc.schollz.com | bash
# via Go install
go install github.com/schollz/croc/v10@latest

Alternatives & related tools
superfile
Terminal-based file manager with dual-pane interface, written in Go
rclone
Command-line program to sync files and directories to and from 70+ cloud storage providers
lf
Terminal file manager written in Go inspired by ranger with vi-style keybindings and shell integration
pdfcpu
PDF processing library and CLI written in Go for validating, merging, splitting, encrypting, stamping, signing and extracting content from PDFs.
syncthing
Continuous file synchronization program that syncs files between multiple computers using peer-to-peer connections
add a badge to your README
Maintain croc? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/croc?utm_source=badge)<a href="https://www.trmn.sh/tools/croc?utm_source=badge"><img src="https://www.trmn.sh/badge/croc.svg" alt="Featured on trmn" height="20"></a>