I found simple encrypt/decrypt for PHP here.
The result is:
Enc: 6dXM5pPw0ODLi+LR1pPX4I/X0t7g4srj5uA=
Dec: teks yang mau di enskripsi
I try decrypt from Qt with this function, but failed 
{
int i;
for (i=0; i < string.length(); i++) {
keychr=pwd.at( (i % pwd.length()) - 1 );
chr
= QChar(string.
at(i
).
unicode() - keychr.
unicode());
result.append(chr);
}
return result;
}
...
....
qDebug() << dec("6dXM5pPw0ODLi+LR1pPX4I/X0t7g4srj5uA=", "passwordku");
QString Dialog::dec(const QByteArray &teks, const QString &pwd) const
{
QString result;
QString string(QByteArray::fromBase64(teks).constData());
int i;
QChar chr;
QChar keychr;
for (i=0; i < string.length(); i++) {
keychr=pwd.at( (i % pwd.length()) - 1 );
chr = QChar(string.at(i).unicode() - keychr.unicode());
result.append(chr);
}
return result;
}
...
....
qDebug() << dec("6dXM5pPw0ODLi+LR1pPX4I/X0t7g4srj5uA=", "passwordku");
To copy to clipboard, switch view to plain text mode
The Qt result is
éeks yang âau di ensà ripsi
I think there is something different between php and Qt
Bookmarks