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.
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.