OMEMO is, like any other encryption protocol based on trust. The user has to make sure, that the keys they are trusting belong to the right users. Otherwise a so called Man-in-the-Middle attack is possible. An attacker might pretend to be your contact and secretly steal all the messages you thought were encrypted. They are, just to the wrong recipient.
To counteract such attacks, OMEMO encourages the user to verify their contacts fingerprints. A fingerprint can be considered the name of a contacts key. The user has to make sure, that the key A he is presented with really belongs to contact C by checking, if the fingerprints match. As those fingerprints are usually long, random series of characters, this is a tedious task. Luckily there are techniques like QR codes, which make our lifes easier. Instead of comparing two long strings character by character, you just scan a code and are done.
The QR-Code contains the Jabber-ID of the owner, as well as all of their fingerprints. So by scanning your code, a friend might automatically add you to their contact list and mark your devices as trusted. You can also put the QR-Code on your personal website, so people who want to reach out to you can easily establish a secure connection to you.
I spent the last few days looking into JavaFX (I have no real UI designing experience in Java, apart from Android), designing a small tool that can generate OMEMO fingerprint QR-Codes. This is what I came up with:
The tool logs into your XMPP account and fetches all your published keys. Then it presents you with a list in which you can select, which fingerprints you want to include in the QR-Code.
There are still a lot of features missing and I consider the tool in no means as completed. My plans are to add the possibility to export QR-Codes to file, as well as to copy the text content of the code to clipboard. You see, there is a lot of work left to do, however I wanted to share my thoughts with you, so maybe client developers can adopt my idea.
3 responses to “QR-Code Generator for OMEMO”
[…] Paul Schaub a écrit à propos d’un générateur de code QR pour OMEMO sur lequel il a travaillé. Ce générateur encode l’identifiant Jabber de l’utilisateur ainsi que les empreintes OMEMO qu’il souhaite y inclure. À lire (en anglais) sur : https://blog.jabberhead.tk/2018/11/03/qr-code-generator-for-omemo/ […]
[…] Paul Schaub a écrit à propos d’un générateur de code QR pour OMEMO sur lequel il a travaillé. Ce générateur encode l’identifiant Jabber de l’utilisateur ainsi que les empreintes OMEMO qu’il souhaite y inclure. À lire (en anglais) sur : https://blog.jabberhead.tk/2018/11/03/qr-code-generator-for-omemo/ […]
why you like the code generator ?