NOTE: this is a draft/todo article of a topic that has been implemented. It is kept around for historical purposes. You probably want http://bugs.quassel-irc.org/projects/quassel-irc/wiki/Blowfish_Encryption_Manual instead.
- Blowfish Encryption
Blowfish is a keyed, symmetric block cipher, designed in 1993 by Bruce Schneier and included in a large number of cipher suites and encryption products. Blowfish provides a good encryption rate in software and no effective cryptanalysis of it has been found to date. However, the Advanced Encryption Standard now receives more attention. Schneier designed Blowfish as a general-purpose algorithm, intended as a replacement for the aging DES and free of the problems and constraints associated with other algorithms. At the time Blowfish was released, many other designs were proprietary, encumbered by patents or were commercial/government secrets. Schneier has stated that, "Blowfish is unpatented, and will remain so in all countries. The algorithm is hereby placed in the public domain, and can be freely used by anyone."
Blowfish can be used in IRC to encrypt messages between 2 persons in a query or messages in a channel and the topic too.
- In XChat2, Irssi3 and mIRC4 Blowfish support can be enabled with the FiSH plugin5.
- Konversation6 has a built in Blowfish support
- #689 Blowfish Support (since 28.10.2010 in upstream available)
- #911 DH1080 Key Exchange
- #1069 showkey command
- #1045 Crash of missing qca provider plugin
- #1059 Crash on not decryptable text
- #61 Encrypted query (closed, will not implemented)
The current development state can be found at http://gitorious.org/~johu/quassel/johus-quassel
Get the source
git clone git://gitorious.org/~johu/quassel/johus-quassel.git git checkout -b dh1080 -t origin/dh1080
Include QCA in build systemTested in Linux Windows; Need support for MaxOSX testing Cipher implementionClass imported from Konversation, should works include cipher in IrcUser and IrcChannel store keys for channel and user in Network commands setkey, delkey implementation encrypt topic decrypt topic encrypt channel message decrypt channel message encrypt query message decrypt query message extract howto for end user from this wiki site gentoo ebuild command showkey command keyx initiliase key exchange react on key exchange
The Blowfish algorithm is implemented in the QCA (Qt Cryptographic Architecture) library. QCA works on all plattforms there are supported by QT including Unix, Windows and MacOSX. It is already included in Quassel build system at listed repository above. At runtime a QCA provider plugin is needed, for example qca-ossl.
a) setting a key for a user or channel
/setkey <nick|channel> <key>
b) deleting a key for a user or channel
c) show key for a user or channel
d) key exchange for user or channel
After short discussion in #quassel.de with Sput, krytzz and brot Blowfish encryption will be included in core. See section discussion below for more information. The only contra argument is the unsecure path between remote core and clientvin a untrusted net in case of no ssl connection is present. But the pro argument preponderate to strong. So i will revert the first plan to implement the de-/encryption in client.
The other result of this discussion is this wiki article.
There are two possible ways to implement Blowfish support in Quassel architecture:
a) Client side de-/encryption
All messages will be de-/encrypted on client side.Pro
- the complete path of messages from one client to an other is encrypted
- core have nothing to do
- Messages in backlog will be encrypted, that implies on receiving backlog all encrypted messages have to decrypt
- If key for a channel/user changed, old messages will stay decrypted
b) Core side de- and encryption
All messages will be de-/encrypted on core.Pro
- Backlog contains all decrypted messages
- Client do not need to decrypt on receiving backlog
- Key change doesnt matter
- Fits better in Quassel architecture
- The path between a core and client is unsecured if SSL is not enabled and it is not a monolitic build.