Compare commits

..

11 commits

16 changed files with 369 additions and 275 deletions

View file

@ -4,7 +4,7 @@ layout: post
lang: 'en'
title: 'about'
description: 'General info about this website and the author'
description: 'General info about this website and the author.'
---
@ -25,7 +25,7 @@ description: 'General info about this website and the author'
</div>
<p>
I'm a&nbsp;front-end developer and a&nbsp;big fan of&nbsp;open-source,
Im a&nbsp;front-end developer and a&nbsp;big fan of&nbsp;open-source,
customization, and minimalist software.<br>
Member of&nbsp;the
<a href='https://t.me/barbadbar' target='_blank'>BadBar</a> crew,

View file

@ -2,12 +2,13 @@
layout: post
lang: 'en'
date: '2026-04-05'
section: 'about'
title: 'keys'
description: 'Public keys and fingerprints.'
section: 'about'
date: '2026-04-05'
---
# Public Keys and Fingerprints

View file

@ -1,6 +1,7 @@
---
description: 'My own private fanzine'
description: 'My own private fanzine.'
css:
- index

View file

@ -200,7 +200,7 @@ in&nbsp;the middle of&nbsp;a&nbsp;conversation.
</header>
<section class='description'>
Interactive articles about physics, math, and engineering.
It's probably the best website on&nbsp;the entire internet.<br>
Its probably the best website on&nbsp;the entire internet.<br>
My&nbsp;favorite post is&nbsp;the one about
<a href='https://ciechanow.ski/bicycle/' target='_blank'>bicycles</a>.
</section>
@ -245,7 +245,7 @@ in&nbsp;the middle of&nbsp;a&nbsp;conversation.
<section class='description'>
Torrenting can leave traces.<br>
Check torrent downloads and distributions
for your own or&nbsp;your neighbor's IP&nbsp;address.
for your own or&nbsp;your neighbors IP&nbsp;address.
</section>
</article>
@ -300,7 +300,7 @@ in&nbsp;the middle of&nbsp;a&nbsp;conversation.
<header>
<strong>
<a href='https://news.ycombinator.com/item?id=42492508' target='_blank'>
Ask HN: Programmers who don't use autocomplete/LSP, how do&nbsp;you do&nbsp;it?
Ask HN: Programmers who dont use autocomplete/LSP, how do&nbsp;you do&nbsp;it?
</a>
</strong>
</header>
@ -314,7 +314,7 @@ in&nbsp;the middle of&nbsp;a&nbsp;conversation.
<header>
<strong>
<a href='https://sneak.berlin/20201112/your-computer-isnt-yours/' target='_blank'>
Your Computer Isn't Yours
Your Computer Isnt Yours
</a>
</strong>
</header>
@ -411,7 +411,7 @@ in&nbsp;the middle of&nbsp;a&nbsp;conversation.
</strong>
</header>
<section class='description'>
Most software tutorials suck. Here's how to&nbsp;make one that doesn't.
Most software tutorials suck. Heres how to&nbsp;make one that doesnt.
</section>
</article>

View file

@ -4,7 +4,7 @@ layout: post
lang: 'en'
title: 'posts'
description: 'Сomplete list of posts'
description: 'Сomplete list of posts.'
---

View file

@ -1,16 +1,15 @@
---
layout: post
lang: 'ru'
date: '2020-11-08'
year: '2020'
section: 'posts'
title: 'initial post'
description: 'Первый пост в этом фэнзине, рассказывающий о его внутреннем устойстве.'
section: 'posts'
year: '2020'
date: '2020-11-08'
---
# Initial Post

View file

@ -1,16 +1,15 @@
---
layout: post
lang: 'ru'
date: '2020-11-18'
year: '2020'
section: 'posts'
title: 'typographic linter'
description: 'Prettier для текста. Автоматизация рутинной типографики.'
section: 'posts'
year: '2020'
date: '2020-11-18'
---
# Типографика как code style

View file

@ -4,4 +4,3 @@ layout: redirect
redirectTarget: '/posts/#2024'
---

View file

@ -1,16 +1,15 @@
---
layout: post
lang: 'ru'
date: '2024-01-15'
year: '2024'
section: 'posts'
title: 'selfhosted LLM'
description: 'Персональные LLM в docker-контейнере на твоём компьютере.'
section: 'posts'
year: '2024'
date: '2024-01-15'
---
# Your Own Private Large Language Models

View file

@ -1,15 +1,15 @@
---
layout: post
lang: 'ru'
date: '2024-07-27'
year: '2024'
section: 'posts'
title: 'wrapped bw'
description: 'Превращаем fully-featured Bitwarden command-line interface в удобный.'
section: 'posts'
year: '2024'
date: '2024-07-27'
---
# Интеграция Bitwarden CLI с&nbsp;fzf и&nbsp;буфером обмена

6
src/pages/posts/2026.md Normal file
View file

@ -0,0 +1,6 @@
---
layout: redirect
redirectTarget: '/posts/#2026'
---

View file

@ -2,346 +2,418 @@
layout: post
lang: 'en'
year: '2026'
date: '2026-04-07'
section: 'posts'
title: 'encrypted_XMPP'
title: 'encrypted XMPP'
description: 'Secure and private messaging with XMPP and OMEMO encryption.'
section: 'posts'
year: '2026'
date: '2026-04-16'
---
# End-to-End Encryption in XMPP with OMEMO
# End-to-End Encryption in&nbsp;XMPP with OMEMO
I find it funny that twenty years ago I was already trying
to promote XMPP over ICQ to my classmates.
At the time, the proprietary messenger kept making life harder
for users of alternative clients.
Thats when I realized that I prefer protocols over services.
I&nbsp;find it&nbsp;funny that twenty years ago I&nbsp;was already trying
to&nbsp;get people to&nbsp;switch to&nbsp;XMPP.
I didnt have much success back then,
but fortunately, XMPP (and I hope I have too)
For a&nbsp;long time, ICQ was extremely popular around me,
but the proprietary messenger kept breaking things for people
using alternative clients, which was quite annoying.
After yet another round of&nbsp;this pointless battle
I&nbsp;realized clearly that I&nbsp;prefer protocols over services.
I&nbsp;didnt have much success back then,
but fortunately, XMPP (and I&nbsp;hope I&nbsp;have too)
has continued moving forward over the past two decades.
It has developed slowly, sometimes awkwardly, but steadily.
It&nbsp;has developed slowly, sometimes awkwardly, but steadily.
Here I wont talk about why XMPP is great or how to use it.
Here, I&nbsp;wont talk about why XMPP is&nbsp;great or&nbsp;how it&nbsp;works.
You can check
<a
href='https://contrapunctus.codeberg.page/the-quick-and-easy-guide-to-xmpp.html'
target='_blank'>
this guide</a>
(one of many) and Id rather not write another one.
In this post, I want to focus specifically on end-to-end encryption
and the practical aspects of using it.
(one of&nbsp;many) and Id rather not write another one.
In&nbsp;this post,
I&nbsp;want to&nbsp;focus specifically on&nbsp;end-to-end encryption
and the practical aspects of&nbsp;using it.
## Short Glossary
**End-to-end encryption** is a way to keep your chats truly private.<br>
**End-to-end encryption** is&nbsp;a&nbsp;way
to&nbsp;keep your chats truly private.<br>
Only you and the person youre messaging can read the messages.
Not even the server owner has the keys needed to decrypt or modify them.
Not even the server owner has the keys
needed to&nbsp;decrypt or&nbsp;modify them.
**XMPP** is an extensible protocol for instant messaging.
It's open, decentralized, and mature.
**XMPP** is&nbsp;an&nbsp;extensible protocol for instant messaging.
Its open, decentralized, and mature.
**OMEMO** is a widely supported XMPP Extension Protocol (XEP)
**OMEMO** is&nbsp;a&nbsp;<a
href='https://omemo.top/'
target='_blank'>widely supported</a>
XMPP Extension Protocol (XEP)
for secure multi-client end-to-end encryption.
You can read more about
it on a&nbsp;<a
href='https://contrapunctus.codeberg.page/the-quick-and-easy-guide-to-xmpp.html'
target='_blank'>dedicated page by Daniel Gultsch</a>.
it&nbsp;on&nbsp;a&nbsp;<a
href='https://conversations.im/omemo/'
target='_blank'>dedicated page by&nbsp;Daniel Gultsch</a>.
**Client**, in this post,
means a specific instance of an XMPP application on a user device.
**Client**, in&nbsp;this post,
means a&nbsp;specific instance
of&nbsp;an&nbsp;XMPP application on&nbsp;a&nbsp;user device.
<br>OMEMO-related documentation uses the term Device,
but I find it potentially confusing:
in practice, a single physical device can run multiple independent clients.
but I&nbsp;find it&nbsp;potentially confusing:
in&nbsp;practice, a&nbsp;single physical device
can run multiple independent clients.
## Basic Concepts
This section introduces some basic ideas behind end-to-end encryption.
This section introduces some basics of&nbsp;end-to-end encryption.
If you're already familiar with the concepts and terminology,
If&nbsp;youre already familiar with the concepts and terminology,
you can skip ahead to&nbsp;<a
href='#'>how end-to-end encryption affects the XMPP user experience</a>
or jump straight to the <a
href='#'>step-by-step workflow</a>&nbsp;I personally use.
href='#practical-aspects-of-omemo-and-xmpp'>how end-to-end encryption
affects the XMPP user experience</a>,
or&nbsp;jump straight to&nbsp;the <a
href='#step-by-step-guide'>step-by-step workflow</a> I&nbsp;personally use.
### Trade-offs Between Safety and Convenience
Unfortunately, things that are truly secure are rarely convenient.
They often require some initial efforts and a bit of ongoing attention.
They often require some initial efforts
and a&nbsp;bit of&nbsp;ongoing attention.
Telegram, which used to be a benchmark for messenger usability
Telegram, which used to&nbsp;be&nbsp;a&nbsp;benchmark for messenger usability
before its long dive into enshitification,
really draws the line between convenience and security.
Regular chats are easy and flexible,
but "secret" chats come with a full set of limitations:
but “secret” chats come with a&nbsp;full set of&nbsp;limitations:
theyre one-on-one only,
cant be synced to another device,
arent available on desktop at all,
and so on.
cant be&nbsp;synced to&nbsp;another device,
arent available on&nbsp;desktop at&nbsp;all,
and so&nbsp;on.
All commercial so-called "secure" messengers, like Signal or WhatsApp,
end up with pretty similar limitations,
because it's tricky to make end-to-end encrypted chats
All commercial so-called “secure” messengers, like Signal or&nbsp;WhatsApp,
end up&nbsp;with pretty similar limitations,
because its tricky to&nbsp;make end-to-end encrypted chats
work the way users expect.
Luckily, protocols and cryptography dont care about
convenience or user expectations.
Many XMPP clients let you do almost anything youre trying to do.
convenience or&nbsp;user expectations.
Many XMPP clients let you do&nbsp;almost anything youre trying to&nbsp;do.
Sometimes its clunky and unintuitive,
sometimes its the kind of freedom that lets you shoot yourself in the foot.
At the end of the day, youd better understand what youre doing.
sometimes its the kind of&nbsp;freedom
that lets you shoot yourself in&nbsp;the foot.
At&nbsp;the end of&nbsp;the day, youd better understand what youre doing.
It might sound messy, but for that price, XMPP actually
gives you a lot of handy features:
It&nbsp;might sound messy, but for that price, XMPP actually
gives you a&nbsp;lot of&nbsp;handy features:
your chats are secured with Signal-grade end-to-end encryption,
and you can use as many devices as you want,
all at the same time,
without being tied to any proprietary service.
This post is here to show how to use it intentionally and safely.
and you can use as&nbsp;many devices as&nbsp;you want,
all at&nbsp;the same time,
without being tied to&nbsp;any proprietary service.
In general, the XMPP experience today
could be described as a "WhatsApp with benefits and frictions".
It's kinda ironic, considering that WhatsApps protocol
is actually based on XMPP, but incompatibly altered and defederated.
In&nbsp;general, the XMPP experience today
could be&nbsp;described as&nbsp;a&nbsp;“WhatsApp with benefits and frictions”.
Its kinda ironic, considering that WhatsApps protocol
is&nbsp;actually based on&nbsp;XMPP, but incompatibly altered and defederated.
### Keys, Fingerprints and Trust
OMEMO is based on the Double Ratchet Algorithm.
OMEMO is&nbsp;based on&nbsp;the <a
href='https://en.wikipedia.org/wiki/Double_Ratchet_Algorithm'
target='_blank'>
Double Ratchet Algorithm</a>.
While the internal details are quite interesting,
for practical purposes it's enough to know that
for practical purposes its enough to&nbsp;know that
each client stores some cryptographic keys
and can derive a hash from them, commonly called a fingerprint.
and can derive a&nbsp;hash from them, commonly called a&nbsp;fingerprint.
Keys are usually managed automatically by the XMPP client,
and in normal use you should never need to handle them manually.
In fact, you probably dont even need to know what they look like.
Keys are usually managed automatically by&nbsp;the XMPP client,
and in&nbsp;normal use you should never need to&nbsp;handle them manually.
In&nbsp;fact, you probably dont even need to&nbsp;know what they look like.
A fingerprint lets you identify a specific client of your contact
and verify that it hasnt been spoofed.
Fingerprints for an account are not secret:
clients publish their own fingerprints to the XMPP server
and automatically receive the fingerprints of others.
Only fingerprints you explicitly mark as trusted are relevant.
A&nbsp;fingerprint lets you identify
a&nbsp;specific client of&nbsp;your contact
and verify that it&nbsp;hasnt been spoofed.
Fingerprints for an&nbsp;account are not secret:
clients publish their own fingerprints to&nbsp;the XMPP server
and automatically receive the fingerprints of&nbsp;others.
Only fingerprints you explicitly mark as&nbsp;trusted are relevant.
In an ideal scenario, the contact should confirm in person
or through an already trusted and secure communication channel
that the fingerprint belongs to their device,
and only then you mark it as trusted.
In most XMPP clients this is simply done by ticking a checkbox
or by scanning a QR code.
In&nbsp;an&nbsp;typical scenario, the contact should confirm in&nbsp;person
or&nbsp;through an&nbsp;already trusted and secure communication channel
that the fingerprint belongs to&nbsp;their device,
and only then you mark it&nbsp;as&nbsp;trusted.
The list of trusted fingerprints is used at the moment a message is sent.
Behind the scenes, OMEMO performs a certain amount of key management,
and only the clients that are present in the trusted list
at the time of encryption will be able to decrypt the message later.
The list of&nbsp;trusted fingerprints
is&nbsp;used at&nbsp;the moment a&nbsp;message is&nbsp;sent.
Behind the scenes,
OMEMO performs a&nbsp;certain amount of&nbsp;key management,
and only the clients that are present in&nbsp;the trusted list
at&nbsp;the time of&nbsp;encryption
will be&nbsp;able to&nbsp;decrypt the message later.
It's important to understand that trust cannot be applied retroactively:
it's not possible to "extend" trust to new clients
after a message has already been encrypted and sent.
Its important to&nbsp;understand
that trust cannot be&nbsp;applied retroactively:
its not possible to&nbsp;“extend” trust to&nbsp;new clients
after a&nbsp;message has already been encrypted and sent.
## Practical Aspects of OMEMO and XMPP
<h2 id='practical-aspects-of-omemo-and-xmpp'>
Practical Aspects of&nbsp;OMEMO and XMPP
</h2>
### Chat History
In theory, XMPP supports server-side message history storage via
In&nbsp;theory, XMPP supports server-side message history storage via
**XEP-0313: Message Archive Management**.
In practice, support for this XEP,
as well as retention policies and message lifetime,
depends on the specific server.
In&nbsp;practice, support for this XEP,
as&nbsp;well as&nbsp;retention policies and message lifetime,
depends on&nbsp;the specific server.
You should never assume that all conversations are stored
indefinitely by default.
From a practical standpoint,
the server-side MAM archive is better considered a cache:
it can help you handle recent messages after a short period offline
or synchronize conversations across multiple devices.
indefinitely by&nbsp;default.
From a&nbsp;practical standpoint,
the server-side MAM archive is&nbsp;better considered a&nbsp;cache:
it&nbsp;can help you handle recent messages after a&nbsp;short period offline
or&nbsp;synchronize conversations across multiple devices.
At the end of the day, keeping your chat history is your responsibility,
and this is a good place to apply a local-first approach.
At&nbsp;the end of&nbsp;the day,
keeping your chat history is&nbsp;your responsibility,
and this is&nbsp;a&nbsp;good place to&nbsp;apply a&nbsp;local-first approach.
### Synchronisation
Seamless switching between clients is handled by
Seamless switching between clients is&nbsp;handled by
**XEP-0280: Message Carbons**.
Before its introduction, only incoming messages were synced between devices,
while your own outgoing messages were not.
Protocol-level mirroring of your own messages
is a rather non-obvious feature :D
Protocol-level mirroring of&nbsp;your own messages
is&nbsp;a&nbsp;rather non-obvious feature :D
It's important to note that with end-to-end encryption,
the concept of trusted fingerprints also applies to your own clients.
For seamless synchronisation of outgoing messages,
all your clients must trust each other's fingerprints.
A new client,
or an old one that was not trusted at the time messages were sent,
will receive the full history from MAM but will not be able to decrypt it.
Its important to&nbsp;note that with end-to-end encryption,
the concept of&nbsp;trusted fingerprints also applies to&nbsp;your own clients.
For seamless synchronisation of&nbsp;outgoing messages,
all your clients must trust each others fingerprints.
A&nbsp;new client,
or&nbsp;an&nbsp;old one that was not trusted
at&nbsp;the time messages were sent,
will receive the full history from MAM
but will not be&nbsp;able to&nbsp;decrypt it.
<br>Yes, even your own messages.
In theory, re-encrypting messages on already trusted clients
could solve this issue, but no XMPP client implements it yet.
So in practice you may need to manually resend
some data to a new device.
In&nbsp;theory, re-encrypting messages on&nbsp;already trusted clients
could solve this issue, but no&nbsp;XMPP client implements it&nbsp;yet.
So&nbsp;in&nbsp;practice you may need to&nbsp;manually resend
some data to&nbsp;a&nbsp;new device.
### Message Correction
Its worth keeping in mind that
features that seem simple and straightforward at first glance,
such as message editing and deletion,
actually rely on client-side implementation
Its worth keeping in&nbsp;mind that
features that seem simple and straightforward at&nbsp;first glance,
such as&nbsp;message editing and deletion,
actually rely on&nbsp;client-side implementation
and may not behave for your recipient the way you expect.
Theyre fine to use and are well supported in some clients,
but you shouldnt rely on them to hide anything.
Theyre fine to&nbsp;use and are well supported in&nbsp;some clients,
but you shouldnt rely on&nbsp;them to&nbsp;hide anything.
### Maintenance
OMEMO was designed as a set-it-and-forget-it solution,
and it mostly succeeds in that goal.
If you have a basic understanding of how the protocol works
and check in online from time to time,
there shouldnt be any surprises.
OMEMO was designed as&nbsp;a&nbsp;set-it-and-forget-it solution
and mostly succeeds in&nbsp;that goal.
If&nbsp;you have a&nbsp;basic understanding of&nbsp;how the protocol works
and check in&nbsp;online from time to&nbsp;time,
there shouldnt be&nbsp;any surprises.
All maintenance comes down to making regular backups
All maintenance comes down to&nbsp;making regular backups
and notifying your contacts
when fingerprints are added or no longer valid
so they can keep their trust list up to date.
when fingerprints are added or&nbsp;no&nbsp;longer valid
so&nbsp;they can keep their trust list up&nbsp;to&nbsp;date.
## Step-by-step Guide
## Step-by-Step Guide
Lets say I have a XMPP account, me@some.server,
and a few devices: a phone, a laptop, and a desktop computer.
First Ill describe my mindset at a high level,
Lets say I&nbsp;have a&nbsp;XMPP account, `me@some.server`,
and a&nbsp;few devices:
a&nbsp;phone, a&nbsp;laptop, and a&nbsp;desktop computer.
First Ill describe my&nbsp;mindset at&nbsp;a&nbsp;high level,
then Ill add some notes about specific clients.
### Client Roles
On the one hand, I have my phone.
Its almost always with me and almost always online.
Thats where I keep the full chat history and get real-time notifications.
On&nbsp;the one hand, I&nbsp;have my&nbsp;phone.
Its almost always with me&nbsp;and almost always online.
Thats where I&nbsp;keep the full chat history
and get real-time notifications.
On the other hand, I have a couple of desktop applications.
I only open them when I need to discuss something using my keyboard
or move some text between devices.
I like to think of them as ad-hoc or satellite clients.
On&nbsp;the other hand, I&nbsp;have a&nbsp;couple of&nbsp;desktop applications.
I&nbsp;only open them
when I&nbsp;need to&nbsp;discuss something using my&nbsp;keyboard
or&nbsp;share some text between devices.
I&nbsp;like to&nbsp;think of&nbsp;them as&nbsp;satellite clients.
### Before the Start
First, enable OMEMO encryption on every client if it isn't enabled by default.
The client will usually generate the keys and fingerprint automatically.
First, enable OMEMO encryption
on&nbsp;every client if&nbsp;it&nbsp;isnt enabled by&nbsp;default.
The next step is to add all clients to the trust list on each device:
my phone should trust all my computers,
and my computers should trust each other as well as my phone.
The next step is&nbsp;to&nbsp;add
all clients to&nbsp;the trust list on&nbsp;each device:
my&nbsp;phone should trust all my&nbsp;computers,
and my&nbsp;computers should trust each other
as&nbsp;well as&nbsp;my&nbsp;phone.
Fingerprints do not have to be secret, so they can be published on
your website or even on social media profiles.
Here is my page with the fingerprints:
Fingerprints do&nbsp;not have to&nbsp;be&nbsp;secret,
so&nbsp;they can be&nbsp;published on
your website or&nbsp;even on&nbsp;social media profiles.
Here is&nbsp;my&nbsp;page with the fingerprints, for example:
<br><a href='https://oddsquat.org/about/keys/' target='_blank'>
https://oddsquat.org/about/keys/
</a>
### Start the Conversation in Person
### Start the Conversation in&nbsp;Person
Lets say I meet Alice,
we start talking, and decide to continue the conversation online.
Lets say I&nbsp;meet Alice,
we&nbsp;start talking,
and then decide to&nbsp;continue the conversation online.
I open a special QR code on my phone, and Alice scans it with her client.
This QR code already contains the fingerprints of all my devices,
so no extra steps are needed.
I&nbsp;open a&nbsp;special QR&nbsp;code on&nbsp;my&nbsp;phone,
and Alice scans it&nbsp;with her client.
This QR&nbsp;code already contains
the fingerprints of&nbsp;all my&nbsp;devices,
so&nbsp;no&nbsp;extra steps are needed on&nbsp;her phone.
After that, I&nbsp;do&nbsp;the same
and scan her QR&nbsp;code as&nbsp;well.
Then I do the same and scan the QR code from Alices screen
with my mobile client.
Later at&nbsp;home,
I&nbsp;manually mark her devices as&nbsp;trusted on&nbsp;my&nbsp;computers
using the trusted list on&nbsp;my&nbsp;phone, and she does the same.
Now we are both sure that its really us in the conversation,
and that all messages will be available on all our devices and only on them.
Now we&nbsp;are both sure
that it&nbsp;is&nbsp;really us&nbsp;in&nbsp;the conversation,
and that all messages will be&nbsp;available
on&nbsp;all our devices and only on&nbsp;them.
### Start the Conversation Online
Lets say Bob and I start discussing something
on a forum or in the Fediverse,
and then decide to move to XMPP.
Lets say Bob and I&nbsp;start discussing something
on&nbsp;a&nbsp;forum or&nbsp;in&nbsp;the Fediverse,
and then decide to&nbsp;continue the discussion on&nbsp;XMPP.
Bob starts the chat. I trust the first device he messages me from,
and then we exchange fingerprints for our other devices, if we have any.
This approach is called TOFU (Trust On First Use).
Before starting the chat,
Bob can confirm its really me&nbsp;using my&nbsp;page with fingerprints.
I&nbsp;can confirm its really him
by&nbsp;asking him to&nbsp;send his fingerprints
in&nbsp;a&nbsp;private message on&nbsp;the same forum or&nbsp;via email.
Bob can confirm its really me using my page with fingerprints.
I can confirm its really him by asking him to send his fingerprints
in a private message on the same forum or via email.
Ideally, Bob also has a&nbsp;public page with his fingerprints.
That way, we&nbsp;can both independently verify
that we&nbsp;are who we&nbsp;say we&nbsp;are.
Ideally, Bob also has a public page with his fingerprints.
That way, we can both independently verify
that we are who we say we are.
In&nbsp;an&nbsp;alternative scenario,
where there has been no&nbsp;prior communication or&nbsp;public pages
and only a&nbsp;single JID&nbsp;is known,
things play out a&nbsp;bit differently:
Bob starts the chat,
I&nbsp;trust the first device he&nbsp;messages me&nbsp;from,
and then we&nbsp;exchange fingerprints for our other devices,
if&nbsp;we&nbsp;have any.
This approach is&nbsp;called TOFU (Trust On&nbsp;First Use).
### New or Lost Devices
### New or&nbsp;Lost Devices
If I start using a new device or install another client application,
the first thing I do is add it to the list of trusted clients
on my existing devices.
If&nbsp;I&nbsp;start using a&nbsp;new device
or&nbsp;install another client application,
the first thing I&nbsp;do&nbsp;is&nbsp;add it&nbsp;to&nbsp;the list
of&nbsp;trusted clients on&nbsp;my&nbsp;existing devices.
If I lose one of my devices or delete any private keys,
the first thing I do is remove the corresponding client
from the trusted list on my other devices.
If&nbsp;I&nbsp;lose one of&nbsp;my&nbsp;devices
or&nbsp;delete any private keys,
the first thing I&nbsp;do&nbsp;is&nbsp;remove the corresponding client
from the trusted list on&nbsp;my&nbsp;other devices.
Once Ive updated all my personal lists,
I should inform my contacts about changes via trusted channels.
Once Ive updated all my&nbsp;personal lists,
I&nbsp;should inform my&nbsp;contacts about changes via trusted channels.
I can simply ask Alice to scan my new QR code the next time we meet,
and send Bob a message introducing my new client or letting him know
that the lost device is no longer trusted
and that no real messages will ever come from it again.
I&nbsp;can simply ask Alice to&nbsp;scan
my&nbsp;new QR&nbsp;code the next time we&nbsp;meet,
and send Bob a&nbsp;message introducing
my&nbsp;new client or&nbsp;letting him know
that the lost device is&nbsp;no&nbsp;longer trusted
and that no&nbsp;real messages will ever come from it&nbsp;again.
## Client Applications
This section describes how OMEMO is used in specific client applications
that I personally use.
This section describes
how OMEMO is&nbsp;used in&nbsp;specific client applications
that I&nbsp;personally use.
### Conversations and Forks
Conversations is a modern, fully featured chat application for Android.
It supports everything a messaging app should support:
chats, voice calls, and sharing photos and files.
<a
href='https://conversations.im/'
target='_blank'>
Conversations</a> is&nbsp;a&nbsp;modern,
fully featured chat application for Android.
It&nbsp;supports everything a&nbsp;messaging app should support:
chats, voice calls, video calls, and sharing files of&nbsp;any kind.
There are several forks of it where the UI or UX may differ,
There are several forks of&nbsp;it&nbsp;where
the UI&nbsp;or&nbsp;UX&nbsp;may differ,
but the core features work exactly the same.
I personally use Monocles Chat.
I&nbsp;personally use <a
href='https://codeberg.org/monocles/monocles_chat'
target='_blank'>
Monocles Chat</a>.
On the Contact Details screen (including your own account),
you can see a list of published fingerprints
and manually mark them as trusted or revoke trust.
On&nbsp;the Contact Details screen (including your own account),
you can see a&nbsp;list of&nbsp;published fingerprints
and manually mark them as&nbsp;trusted or&nbsp;revoke trust.
To simplify all these routine operations, a QR-code-based system is used:
You can show your own QR code or scan other peoples codes
To&nbsp;simplify all these routine operations,
a&nbsp;QR-code-based system is&nbsp;used:
you can show your own QR&nbsp;code or&nbsp;scan other peoples codes
directly from the main screen.
This makes device verification during in-person meetings simple and effortless.
This makes device verification during in-person meetings
simple and effortless.
### Dino
Dino is a lightweight GTK-based GUI client.
<a
href='https://dino.im/'
target='_blank'>
Dino</a> is&nbsp;a&nbsp;lightweight GTK-based GUI client.
It can be considered a fully functional one,
although some non-essential features are still not supported or implemented.
It&nbsp;can be&nbsp;considered a&nbsp;fully functional one,
although some non-essential features are still not implemented.
For example,
it is not possible to clear local chat history using built-in methods :D
it&nbsp;is&nbsp;not possible to&nbsp;clear local chat history
using built-in methods :D
Trust and untrust decisions can be easily managed
in the Encryption tab of the Conversation Details window.
Trust and untrust decisions can be&nbsp;easily managed
in&nbsp;the Encryption tab of&nbsp;the Conversation Details window.
It is important to note that, by default, Dino is configured
to automatically trust new fingerprints.
I recommend disabling this feature.
It&nbsp;is&nbsp;important to&nbsp;note that,
by&nbsp;default, Dino is&nbsp;configured
to&nbsp;automatically trust new fingerprints.
I&nbsp;recommend disabling this feature.
### Profanity
Profanity is a powerful TUI client
where everything is controlled through a built-in command system.
<a
href='https://profanity-im.github.io/'
target='_blank'>
Profanity</a> is&nbsp;a&nbsp;powerful TUI client
where everything is&nbsp;controlled through a&nbsp;built-in command system.
If you somehow intend to use it,
below you will find a small cheat sheet for using OMEMO.
However, I strongly recommend reading the full documentation.
If&nbsp;you somehow intend to&nbsp;use it,
you can find a&nbsp;small cheat sheet for the `omemo` command below.
However, I&nbsp;strongly recommend reading the full documentation.
- Generate a key and add your other clients:
- Generate a&nbsp;key and add your other clients:
```text
/omemo gen
/omemo trust me@some.server some-cool-fingerprint-01
@ -349,26 +421,43 @@ However, I strongly recommend reading the full documentation.
/omemo qrcode
```
- View the list of your own or someone elses fingerprints:
- View the list of&nbsp;your own or&nbsp;someone elses fingerprints:
```text
/omemo fingerprint me@some.server
/omemo fingerprint alice@another.server
```
Trusted ones will be marked as `trusted`.
Trusted ones will be&nbsp;marked as&nbsp;`trusted`.
- Start an encrypted conversation:
- Start an&nbsp;encrypted conversation:
```text
/omemo start alice@another.server
```
- Add fingerprints to the trusted list:
- Add fingerprints to&nbsp;the trusted list:
```text
/omemo trust alice@another.server some-cool-fingerprint-02
/omemo trust alice@another.server some-cool-fingerprint-03
/omemo trust bob@another.server some-cool-fingerprint-04
```
- Revoke trust for a specific client:
- Revoke trust for a&nbsp;specific client:
```text
/omemo untrust alice@another.server some-cool-fingerprint-02
```
## Late Disclaimer
This post was originally intended
as&nbsp;a&nbsp;collection of&nbsp;answers to&nbsp;questions
I&nbsp;had when I&nbsp;first started using XMPP with OMEMO.
It&nbsp;isnt meant to&nbsp;be&nbsp;exhaustive or&nbsp;formal,
but rather to&nbsp;clarify the practical side of&nbsp;things
and reduce that initial feeling of&nbsp;being lost
when you keep running into
“The message was not encrypted for this device”
over and over again.
From now on, I&nbsp;hope you wont encounter such errors
or&nbsp;any other issues
connected to&nbsp;end-to-end encryption in&nbsp;XMPP.

View file

@ -2,12 +2,13 @@
layout: post
lang: 'ru'
title: 'ugly keyboards'
description: 'Почему нас окружают уродливые клавиатуры и что с этим можно сделать.'
section: 'posts'
year: '2026'
date: '2026-03-18'
section: 'posts'
title: 'ugly_keyboards'
description: 'Почему нас окружают уродливые клавиатуры и что с этим можно сделать.'
---

View file

@ -123,7 +123,7 @@ Incomplete list of&nbsp;my&nbsp;projects and experiments.
- <article class='entry'>
<header>
<strong>
Cantor MX Tastatura
Cantor MX&nbsp;Tastatura
</strong>
</header>
<section class='description'>
@ -141,7 +141,7 @@ Incomplete list of&nbsp;my&nbsp;projects and experiments.
</strong>
</header>
<section class='description'>
Huge custom ergonomic mechanical Dactyl-Manuform (5&times;6) keyboard.
Huge custom ergonomic mechanical Dactyl-Manuform (5×6) keyboard.
</section>
<section>
<a href='https://github.com/He4eT/oddkb' target='_blank'>repository</a>

View file

@ -1,16 +1,15 @@
---
layout: post
lang: 'en'
date: '2020-10-30'
year: '2020'
section: 'posts'
title: 'markdown test page'
description: 'A test document written using the Markdown language.'
section: 'posts'
year: '2020'
date: '2020-10-30'
---
# Markdown: Syntax

View file

@ -25,6 +25,7 @@ const tp = new Typograf({
const enabledRules = [
'common/nbsp/*',
'common/punctuation/apostrophe',
'common/punctuation/quote',
'en-US/dash/main',
'ru/dash/main',