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

Qt Code:
  1. QString Dialog::dec(const QByteArray &teks, const QString &pwd) const
  2. {
  3. QString result;
  4. QString string(QByteArray::fromBase64(teks).constData());
  5.  
  6. int i;
  7. QChar chr;
  8. QChar keychr;
  9. for (i=0; i < string.length(); i++) {
  10. keychr=pwd.at( (i % pwd.length()) - 1 );
  11. chr = QChar(string.at(i).unicode() - keychr.unicode());
  12. result.append(chr);
  13. }
  14.  
  15. return result;
  16. }
  17.  
  18. ...
  19. ....
  20.  
  21. 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