From 46827e485df7665e31b3ed340da9c2eb4e27bce6 Mon Sep 17 00:00:00 2001 From: alturiak <1785173+alturiak@users.noreply.github.com> Date: Mon, 3 Sep 2018 20:35:20 +0200 Subject: [PATCH] cipher.cpp: Default to CBC instead of ECB For security reasons (and compatibility to other irc-client's implementations), default to CBC for blowfish encryption. --- src/core/cipher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/cipher.cpp b/src/core/cipher.cpp index fb6a6972..88a4c506 100644 --- a/src/core/cipher.cpp +++ b/src/core/cipher.cpp @@ -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; -- 2.20.1