cipher.cpp: Default to CBC instead of ECB
authoralturiak <1785173+alturiak@users.noreply.github.com>
Mon, 3 Sep 2018 18:35:20 +0000 (20:35 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 3 Sep 2018 20:17:34 +0000 (22:17 +0200)
For security reasons (and compatibility to other irc-client's implementations), default to CBC for blowfish encryption.

src/core/cipher.cpp

index fb6a697..88a4c50 100644 (file)
@@ -56,7 +56,8 @@ bool Cipher::setKey(QByteArray key)
 //    if(Preferences::self()->encryptionType())
 //      m_cbc = true;
 //    else
-        m_cbc = false;
+//    default to CBC
+        m_cbc = true;
         m_key = key;
     }
     return true;