PDA

View Full Version : QxtBlowfish doesn't work



fab_74
5th June 2011, 12:29
Hello, I'm trying to use QxtBlowfish in order to encrypt data, but it just doesn't work. Even with documentation's example.



QxtBlowfish fish;
fish.setKey("foobar");
QByteArray data("barblah");
data = fish.encrypt(data);
qDebug() << data << data.length();
data = fish.decrypt(data);
qDebug() << data << data.length();


This code compiles, but will output :

"" 0
"" 0

So it looks like it doesn't work at all... Any idea?

Thank you in advance.

norobro
5th June 2011, 16:48
No problems here (Debian Sid):
"cpI7cihwcQ==" 12
"barblah" 7 Does the following work?
QxtBlowfish fish;
fish.setKey("foobar");
QByteArray data("barblah");
qDebug() << fish.encrypt(data);
// qDebug() <<fish.decrypt(data); // Ignore this - got carried away

fab_74
8th June 2011, 19:42
It returns an empty string... Which version do you use?

norobro
8th June 2011, 22:07
Which version do you use?The last version in which QxtBlowfish was available: 0.5.1

Here's a link (http://www.qtcentre.org/threads/24848-How-to-install-Qxt-properly) to an old thread.