HY Mesh: encrypts the airwaves too, even via strangers' repeaters
MeshCore and HY Mesh: how safe is your message when it travels through other people's radios?
Picture this: you're at a festival, deep in a forest or somewhere your phone gets no signal. Yet you send a message to your sister. No mobile network, no wifi and no cell tower needed. Your message hops from one small radio to the next repeater until it reaches her.
That is the strength of MeshCore. All over the world, enthusiasts are building a network of small radios that pass messages along together. On roofs, balconies, in gardens and behind windows, repeaters extend the reach of the network. You don't need a subscription and you can contribute to the infrastructure yourself.
But there is an interesting question too: how safe is your message when it is sent along the way through other people's radios?
With HY Mesh, the combination of MeshCore and the HY features in BUBLE, we take a different approach. The radio makes sure your message reaches its destination. The extra protection lives in the app, on your own phone. That way you don't have to trust the people behind the repeaters to keep your conversations private.
In this post we explain how that works, what MeshCore already protects by itself and what HY adds on top.
What is MeshCore and how does it work?
MeshCore is open-source software for small radios that can send messages over the LoRa radio network. LoRa is a radio technology suited to small amounts of data over relatively long distances, with low power consumption.
The principle is simple. Your phone connects to a suitable radio over Bluetooth. That radio sends your message through the air. A repeater can receive the message and pass it on to other radios. This way the message can pass through several intermediate stations before it reaches the recipient.
Every repeater expands what the network can do. The more well-placed repeaters there are, the larger the area you may be able to reach.
The special thing is that anyone can help build it. A repeater can be a professional device, but also a small box someone put together themselves and placed in the attic or on the roof.
No central telecom provider is needed. The network exists because users make their radios available.
What does MeshCore already protect by itself?
MeshCore has several ways of sending messages. It is important to tell them apart.
Public channels
Public channels are meant for sharing messages with other participants. The channel key is known to the participants and is not a secret kept between just two people. So don't assume a message on a public channel is private.
Direct messages
MeshCore also supports encrypted direct messages between contacts. That is an important layer of protection: someone who picks up the radio signal cannot simply read a properly encrypted message.
But encryption is not the whole story. How devices identify and trust each other matters too. If you can't be sure enough that a public key really belongs to the person you mean, that can leave room for impersonation or other attacks.
That doesn't mean every MeshCore repeater is unsafe or that the existing protection is worthless. It does mean you have to distinguish between encrypting a message and reliably establishing who you are communicating with.
For an open radio hobby, experimenting with these options is interesting. For a chat app where you exchange personal messages with friends and family, it makes sense to add an extra layer of protection.
How HY Mesh adds an extra layer
HY Mesh starts from a simple principle: the radio network may carry your message, but it doesn't need to know what's in it.
That resembles how modern chat apps protect their messages. You don't have to trust the infrastructure a message travels over to keep its content private.
To do this, HY adds an extra layer to communication over MeshCore.
1. Your message is encrypted on your phone
When you send a message, HY encrypts it on your phone before it goes to the radio over Bluetooth.
So the radio doesn't first receive your readable message and then encrypt it. The content is already protected before it reaches the radio.
Along the way, repeaters and other devices only see the encrypted data. The recipient's phone can make the message readable again with the right key.
Even if someone opens up a repeater, examines the firmware or picks up the radio signal, that alone yields no readable message content.
MeshCore's existing protection can simply keep working alongside it. But for the confidentiality of this extra layer, HY does not rely solely on MeshCore's encryption.
2. Your contact keys don't just come out of thin air
A second important part is how HY obtains the keys for contacts.
A radio that announces itself nearby under a certain name is not automatically proof that it belongs to your friend. After all, a name can be faked.
So HY uses the contacts and the key information that come with them from the app. You add people as contacts while you have internet, so the keys you need can already be on your phone beforehand.
That makes a difference when you go offline later. Your phone doesn't first have to trust a new key from an unknown device over the radio.
A radio posing as one of your contacts therefore doesn't automatically have the right key to decrypt your messages.
This is an essential principle: your contact's identity and the encryption of your message should not depend solely on what an unknown radio tells you over the air.
3. No homemade encryption
For this extra layer of protection, HY uses well-known cryptographic building blocks.
X25519 is used to establish a shared secret key. ChaCha20-Poly1305 is used to encrypt data and verify its integrity at the same time.
That second property is at least as important as secrecy. If someone tries to alter the encrypted content along the way, the recipient can check whether the data is still valid.
These are established cryptographic techniques that are also used in modern security protocols. That is a better foundation than inventing an encryption method yourself.
One important caveat applies, though: using well-known algorithms does not automatically make a complete app secure. The implementation, the key management and the protocol as a whole matter just as much. Independent security audits can help provide more certainty about that.
4. Duplicate messages are recognised
A mesh network can receive the same message over different routes, or a message can be forwarded again. That is part of how such networks work.
That's why HY can add information to messages that lets the app recognise whether a message has already been processed. This can prevent the same message from appearing several times in the conversation.
Confirmation of receipt matters too. A sent message is not automatically a delivered message, and a delivered message is not automatically a read message.
A confirmation from the recipient's app tells you more than just knowing that a radio passed the message along.
The exact meaning of a tick depends on the confirmation steps the app uses. The key distinction remains that transport through the network is not the same as successful receipt by the recipient.
An example: a message through three repeaters
Say you're at a festival with no mobile coverage. You want to let your sister know where you are.
Your phone sends the message over Bluetooth to your MeshCore radio. It broadcasts it. A repeater on an apartment block picks it up and passes it to a second repeater, for example in an attic. Eventually the message reaches your sister's radio.
Several devices are involved along the way. You may not even know the owners of those repeaters.
With HY Mesh, that doesn't have to be a problem for the confidentiality of your message. After all, the content has already been encrypted on your phone. The intermediate stations handle the transport, but don't have the right key to read the message.
Whether a repeater belongs to an experienced radio amateur or to someone who built their first device themselves doesn't change that principle.
That is exactly what makes this combination interesting: you can use a network built by the community, without every participant needing access to your private conversations.
What if the internet goes down completely?
This is where the combination of BUBLE, HY and MeshCore gets interesting.
The internet is handy for making contacts and keys available beforehand and for sending messages over the normal online infrastructure. But if the connection drops, that doesn't have to be the end of your conversation.
If you have set up the contacts and keys you need beforehand and your radios can reach each other through the mesh network, you can send messages over the radio.
Of course, you do need suitable radios, enough radio range and a working route through the network. MeshCore cannot guarantee that every message always arrives: coverage, obstacles, radio interference and the availability of repeaters all play a role.
But where the network works, you can communicate without depending on a mobile internet connection.
What encryption doesn't hide
Good security also means being honest about the limits.
Encryption protects the content of your message. It doesn't automatically mean that all information about the communication stays secret.
Radio is wireless. Someone with suitable equipment may be able to notice that a transmission is taking place at a given moment. Some technical data may also remain visible, depending on the protocols and implementation used.
HY aims to give away as little unnecessary information as possible over the radio. For example, the radio doesn't need to know your readable message content.
But it would be wrong to promise that nobody can see that radio traffic is taking place, that messages always arrive, or that a network operator can never stop a message.
Privacy and availability are two different things. Encryption helps keep your conversations private, but it doesn't prevent a repeater from going down or someone from jamming the radio signal.
Which radio do you need?
You need a suitable LoRa radio with MeshCore firmware and the BUBLE app with HY support.
Think of compact devices you can carry in your pocket, or radios you can use at home as a fixed repeater. Which choice is best depends on how you use it: communicating on the move, extending the network at home, or combining both.
So also take a look at our separate buying guides:
Top 5 MeshCore radios for your pocket — for on the road, travelling and festivals.
Top 5 MeshCore repeaters for home — to extend your own range and help the network grow.
A well-placed device at home can help not only you, but also other users nearby. That's how the network grows, step by step.
Getting started with HY Mesh yourself
Want to give it a try? Here is how to get started:
Install BUBLE and choose HY when you set up the feature.
Add your contacts while you still have internet, so the keys you need are available.
Connect a suitable MeshCore radio to your phone over Bluetooth.
Check whether there is enough mesh coverage where you live, or work with others to extend that coverage.
Try exchanging messages and test what happens when your phone no longer has an internet connection.
Don't expect miracles if there are no repeaters nearby yet. A mesh network works best when people invest in coverage together and place their devices in suitable spots.
A network of everyone, without having to trust everyone
MeshCore shows how powerful a network can be when people build the infrastructure themselves. No mandatory subscription, no central cell tower calling the shots and no single party that has to run the whole network.
HY Mesh builds on that idea with an extra layer of protection in the app. Your message is encrypted on your phone, the contact keys you need are available beforehand and the radios take care of the transport.
That way you combine the freedom of an open radio network with an extra layer of privacy for your conversations.
Because in the end, not everyone who passes on your message needs to be able to read what you write.
HY. Say hy, even without internet.
Credit
Photo by Georgie Devlin: https://www.pexels.com/nl-nl/foto/kunst-gloeiend-verlicht-belicht-8640331/