In Fire We Trust

In the darkest corner light will shine



18 Sep

Print This Post Secure communication with Jabber and GnuPG
чети на bulgarian 

The communication is an important thing. The value of information should not be underestimated. It is especially unpleasant to realise that your bank account is empty just because someone sniffed your password. Yup a bit dark but trully real.
And so for you to be kind of protected from such things in internet it is advisable to use encryption. In todays article we will talk about a way to protect your comunication chanel called instant messaging a.k.a. IM. For the grief of lot’s of people we wont describe protection for any and all protocols but just for one, namely jabber

Used Software
Gajim
PSI
GnuPG

The Idea
The idea is to encrypt our messages using asymetric encryption (in the main role staring GnuPG) and then to stuff them in the Jabber network. The used (tested) klients are Gajim, PSI. For other clients go looking in the net.

The solution
We asume that you already have everything necessaary, i.e. jabber client which supports GnuPG and GnuPG itself.

The first step is to generate our private key. It is advised the key to be small for speed. it is also advisable to generate new key specially for the chatting.

There are a lot of different tools but we are going to use the console based gpg.

gpg --batch --gen-key params

In the file params are the parameters needed for the key generation. More information on the file format can be found at gen-key non-interactively

example file

Key-Type:DSA
Key-Length:1024
Key-Usage:encrypt,sign
Passphrase:parola
Name-Real:test1
Name-Email:test1@jabber.org
Name-Comment:jabber encryption
 
%commit

Now we have a key. So we have to hook it to our client.
This is accomplished from the settings of our account

For PSI

psi-chose-key.png

For Gajim

gajim-chose-key.png

After we have informed our client for the key we should now upload the public part of it to the keyservers and preferably to some public place.

The last step is to assign public keys to the people we will chath with. Of course it is neccessary to acquire this keys somehow, but as we encouraged you should have already published them.
The assigning of the public keys is done in the menu for the contact himself.

For PSI

psi-assign-key.png

For Gajim

gajim-assign-key.png

And finaly we can start to chat safely. To do this we need to just enable the encryption by clicking the padlock icon in the chat window

For PSI

psi-secured-chat.png

For Gajim

gajim-secured-chat.png

Well, that’s all folks. Now you can securely chat with some people.

No comments yet.

Leave a comment

XHTML: Tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <code lang="language"> [lang_en][/lang_en] [lang_bg][/lang_bg] <ul> <ol>


In Fire We Trust

Say NO to trud