Off-the-record Encryption for XMPP Messaging.

Off-The-Record Messaging is the oldest method of encrypting a chat over XMPP, introduced in 2004. OTR’s popularity is still strong in spite of its age and lack of recent development. To avoid possible man in the middle attacks in which an outsider impersonates one of the parties in the chat, the protocol includes a method to “validate” or “authenticate” who you are chatting with. This validation is based on sharing a secret word. OTR Messaging is still an effective method of securing privacy through encryption.

It is easy to enable OTR messaging in the Psi-Plus XMPP client.

Max begins a chat session with Joy using
Coy-IM chat client. Max clicks the button
"Secure Chat".

Max's action notifies Joy's Psi-Plus chat client that she needs to generate a private key. She clicks "Yes" to generate a new key.

Psi-Plus notifies Joy that the key has been generated.

At this point, if Max and Joy continue chatting, their communication is encrypted. A simple message of “How are you?” will look like this on the server:

<message to='' 

Max decides to take the extra step to validate that he is really chatting with Joy. He clicks the button
"Validate Channel".

Max is given a one-time PIN that he must send to Joy using some other method of communication. So, Max calls Joy by phone and tells her that the secret pin is 941187.

The Psi-Plus client asks for the correct PIN, which Joy inputs. What Coy-IM calls "to validate" Psi-Plus calls "to authenticate".

Joy's software confirms that she has been authenticated and recommends that she also authenticates that she is chatting with Max.

Joy decides to authenticate the communication.

Joy's Psi-Plus XMPP client supports three ways of authenticating. She can ask a question that she believes Max knows the answer to, she can ask Max to input a pre-determined word that only he knows, or she can verify the fingerprints of their keys and ask that Max does the same.

Max and Joy have previously shared a secret word. Joy asks Max for that word.

Max inputs the secret word.

Joy receives confirmation.

In this example, we see that Psi-Plus XMPP client offers more options to validate the person you are chatting with. Coy-IM provides a PIN number that is reasonable, but must be communicated by another communication channel at that moment. Previously decided PINs or passwords will not work with Coy-IM.

Topics covered on this page:

Last modified June 17, 2020