Showing posts with label Peer-to-Peer. Show all posts
Showing posts with label Peer-to-Peer. Show all posts

Tuesday, March 17, 2026

Messaging Without The Internet

Briar is a messaging app built around one core idea: no central server. Most apps, Signal, WhatsApp, iMessage, route your messages through servers owned by the company. Those servers can be monitored, blocked, or shut down by governments or courts. Briar syncs messages directly between devices and cuts out the middleman entirely. You can learn more or download the app at the Briar Project website.

When you have internet access, Briar routes everything through Tor. I wrote about Tor back in May 2005 in one of my first blog posts here - it has been around a while!  Tor bounces your traffic through a series of volunteer-run computers around the world, stripping away identifying information at each step. No one watching the network can tell who you are or who you’re talking to, only that you’re using Tor. This protects both message content and the fact that you’re communicating with a specific person, which is often just as sensitive as the message itself.

When the internet goes down, Briar switches to local connections. Over Wi-Fi or Bluetooth, two phones running Briar sync messages directly if they’re within range, roughly 50 feet for Bluetooth, farther for Wi-Fi. This matters during internet shutdowns, protests, or disasters where infrastructure is gone. If local wireless isn’t available either, you can load messages onto a USB stick or SD card and physically carry them to another device.

Briar can also relay messages hop by hop through your contact list. Say you want to reach a friend across town and there’s no internet. If a mutual contact is physically moving between you and your friend, their phone will carry your message and deliver it automatically when they get within Bluetooth range. No one manually copies files. The phone handles it in the background. The catch is distance and trust. Every relay hop requires someone physically walking between locations. It is not a wireless chain stretching across a city. It is more like a postal relay where trusted people carry the mail on foot. And it only works through people already in your contact list. Random phones nearby can’t intercept or relay your messages.

Adding a contact requires scanning each other’s QR codes in person. This exchanges cryptographic keys, the mathematical credentials your devices use to verify identity and encrypt messages. No usernames, no phone number lookup, no central directory. You can’t connect with someone you haven’t met face to face. That’s a feature, not a bug.

All messages are stored encrypted on your device only. Briar holds none of your data. Lose your phone, forget your password, or uninstall the app and your account and messages are gone. No recovery. That’s a deliberate tradeoff.

The app supports one-to-one messaging, group forums, and blogs, all distributed the same way. Forum messages can propagate indirectly. If you and contact A belong to the same forum, and you later come within range of contact B, also a forum member, your phone syncs forum posts to B automatically. Private messages work differently; they only sync directly between sender and recipient. The Briar user manual covers all features in detail.

Briar is Android only; right now as far as I can determine, no iOS version is planned. You can download it from Google Play or F-Droid. Battery drain is higher than standard messaging apps, especially over Tor. Both parties need to be online or physically nearby for delivery. Bluetooth range of 50 feet means it is not a true city-wide mesh network. Someone has to physically move between groups to carry data.

Briar is built for journalists, activists, and anyone operating where surveillance is a real threat or infrastructure can’t be trusted.

Tuesday, March 11, 2008

Peer-to-Peer File Sharing

[Here's a recent piece I wrote for my monthly technology column in La Prensa, a Western Massachusetts Latino newspaper. To read a few of my previous La Prensa technology columns go here.]

Peer-to-peer (commonly referred to as “P2P” or “PtP”) networks are commonly used to share music and video files on the Internet. Much of the illegal file sharing you hear about in the news is handled using P2P networks. These networks are also used for legal file sharing and, in some ways, they have got a bad name because of the sharing of copyrighted materials.

You may recall the early version of Napster, a software program developed by Northeastern University student Shawn Fanning in 1999. Napster worked using a variation of a P2P network (some call it hybrid P2P) that used a centralized server to maintain a list of who was online and who had which MP3 music files for sharing. Because Napster used a centralized server, it was easy to trace users and effectively shut the service down which the Recording Industry Association of America (RIAA) did in the fall of 2001, after filing a lawsuit against Napster.

As Napster was going through the legal battle, programmers were working to develop other file sharing programs that did not use a centralized server. The first of these new programs was named BitTorrent, and created by Bram Cohen in the summer of 2002.

Hundreds of additional P2P programs have been created and they are almost all based on the BitTorent model. Some of the more common BitTorrent type applications include Gnutella, Bearshare, Morpheous and FastTrack.

BitTorrent type programs are true P2P programs, using ad-hoc connections so there is no central server. Every computer running a P2P program provides storage space, bandwidth and processing. As more people install and run the P2P program, more files are being uploaded and downloaded and more computers are participating in the file sharing process.

Here’s details on how a P2P program works. Let’s say you want to download a song (let’s also say this song can be legally distributed) and you’ve got one of these P2P programs installed on your machine. You start the P2P program and type in the name of the song you want in a search box. The program then goes out and looks for other users sharing that song. As users are found the song starts to download to your computer. As more users sharing the same song are found, additional connections are made (each connection is often referred to as a torrent) and the download speed to your computer increases. Also, as you download the song, you start sharing the song with others connected to your computer.

Popular songs and videos can have hundreds of torrents involved in a single download.

If you use P2P programs, you need to be very careful to only download content that can be legally shared. If downloading illegal content, you can be caught and lately some huge fines have been given out to violators.

Also be sure you are running up to date antivirus software and scan your system for spyware weekly. P2P networks can be used to spread malicious software.