From ff5b7b77822156b49162b4dcbedee30eb9798052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Tue, 28 Jul 2009 14:00:19 +0000 Subject: [PATCH] Raw Keygen added git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6662 383ad7c9-94d9-4d36-a494-682f7c89f535 --- LicenseManager/LicenseManager.cc | 7 ++++--- LicenseManager/keyGen/keygen.cc | 10 ++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 LicenseManager/keyGen/keygen.cc diff --git a/LicenseManager/LicenseManager.cc b/LicenseManager/LicenseManager.cc index da3befbf..387192fd 100644 --- a/LicenseManager/LicenseManager.cc +++ b/LicenseManager/LicenseManager.cc @@ -249,10 +249,11 @@ bool LicenseManager::authenticate() { QString saltPost; ADD_SALT_POST(saltPost); - QString key = coreHash + saltPre + pluginHash + saltPost + macHash; - - std::cerr << "Key is: " << key.toStdString() << std::endl; + QString keyClear = coreHash + saltPre + pluginHash + saltPost + macHash; + std::cerr << "keyClear is: " << keyClear.toStdString() << std::endl; + QString key = QCryptographicHash::hash ( keyClear.toAscii() , QCryptographicHash::Sha1 ).toHex(); + std::cerr << "key is: " << key.toStdString() << std::endl; if ( authenticated_ ) std::cerr << "Authentication succcessfull" << std::endl; diff --git a/LicenseManager/keyGen/keygen.cc b/LicenseManager/keyGen/keygen.cc new file mode 100644 index 00000000..8fcfd19d --- /dev/null +++ b/LicenseManager/keyGen/keygen.cc @@ -0,0 +1,10 @@ +#include +#include +#include + +int main(int argc, char **argv) +{ + QFile bla(); + +} + -- GitLab