I always said myself to not work at night...
However, I did it with the following code
Qt Code:
  1. if (usernames.contains(username.trimmed()))
  2. {
  3. p = passwords.at(usernames.indexOf(username));
  4. qDebug()<<"LD password"
  5. "input"<<p<<QCryptographicHash::hash(password.toLocal8Bit(),QCryptographicHash::Md4).toHex();
  6. in = QString::fromLocal8Bit(QCryptographicHash::hash(password.toLocal8Bit(),QCryptographicHash::Md4).toHex());
  7.  
  8. if ( in == p)
  9. {
  10. qDebug()<<"ACCEPTED"<< p.toLocal8Bit() << in;
  11. return true;
  12. }
  13. else
  14. {
  15. qDebug()<<"NO ACCEPTED"<<in<<p<<in.size()<<in.size();
  16. return false;
  17. SleeperThread::msleep(900);
  18. }
  19.  
  20. }
To copy to clipboard, switch view to plain text mode 
where the password is stored in a file as heX.
Regards