Wormhole (magic-wormhole) is a command-line tool that provides secure, peer-to-peer file transfer between computers over the internet. Developed by the Magic Wormhole project, it uses a simple “wormhole code” — a short, human-readable phrase — to establish an encrypted connection between the sender and receiver. This eliminates the need for IP addresses, port forwarding, or any complex network configuration.
The workflow is straightforward: the sender uses `wormhole send filename` and receives a wormhole code like “7-cactus-suitcase”. They share this code with the recipient, who runs `wormhole receive` and enters the code. The file is then transferred directly over an encrypted channel. The wormhole code is generated using a secure random algorithm and includes a checksum that allows the receiving side to detect typos before the transfer begins.
Magic-wormhole is written in Python and is available on all major platforms through pip. The protocol uses a “rendezvous” server to coordinate the initial connection, but the actual file data is transferred directly between peers using a transit relay if direct connections are not possible. The entire communication is encrypted with the wormhole code as the key, ensuring that only the intended recipient can decrypt the file.
Linux, macOS, Windows, BSD
Massachusetts Institute of Technology (MIT)