← All articles
Guides · Vyoma Group · 4 min read

What are safety numbers, and why should you check them?

End-to-end encryption only protects you if you’re talking to the right person. Safety numbers are how you make sure.

Example numbers, for illustration.

The problem safety numbers solve

End-to-end encryption locks each message so only your contact’s key can open it. But how does your phone know the key it was given is really your contact’s?

Imagine someone in the middle hands you their key while pretending to be your friend — and does the same to your friend. Both of you would be locking messages for the impostor, who reads them and passes them on. Nothing would look wrong. This is called a man-in-the-middle attack, or key substitution.

What a safety number is

A safety number is a short code worked out from both of your keys. Your phone calculates it from the keys it has; your friend’s phone does the same. If nobody tampered with anything, the two numbers are identical. If an impostor swapped a key, they won’t match.

It’s like comparing the fingerprints on a lock: you don’t need to understand the maths, just check the two are the same.

How to compare them

  1. In person — the best way. Open the safety number screen and check the digits, or scan each other’s QR code.
  2. On a call — read a few groups aloud. You know their voice, so it’s hard to fake.
  3. Through another trusted channel — never through the same chat you’re checking.

Once they match, mark the contact as verified. You only need to do it once — until the number changes.

Why a safety number changes

The number changes whenever either person’s keys change. Usually that’s innocent:

  • They got a new phone or reinstalled the app
  • They linked or removed a device
  • They restored from a backup onto a new device

Your app should tell you when it happens. If you didn’t expect it — especially before sharing something sensitive — compare again first.

Safety numbers in Vero

In Vero, the safety number is derived with iterated BLAKE2b from the public identity keys of every active device on both accounts — so it also covers linked computers. Private keys never leave your devices, and Vero tells you when a safety number changes.

Vero’s safety number screen: “Make sure it’s really this” with an explanation of how the number is derived
Vero’s safety number screen.

Verifying takes a minute, and you only do it once per contact. For the people you share sensitive things with, it’s worth it.

Vero Messenger

Private chats and calls, encrypted on your device.

Learn more →