| | |
| | | #include <QCryptographicHash> |
| | | #include <QJsonDocument> |
| | | #include <QJsonObject> |
| | | #include <QMap> |
| | | |
| | | QT_BEGIN_NAMESPACE |
| | | namespace Ui { class MainWindow; } |
| | |
| | | QString Bios_Serialnumber = ""; |
| | | QString CPU_Processorid = ""; |
| | | QString Username = ""; |
| | | int ActiveState = 0; |
| | | int IsEnabled_cell = 0; |
| | | int IsEnabled_aquifer = 0; |
| | | int IsEnabled_pipe = 0; |
| | |
| | | MainWindow(QWidget *parent = nullptr); |
| | | ~MainWindow(); |
| | | |
| | | void initUI(); |
| | | |
| | | QString toUpperAndLower(QString src); |
| | | |
| | | QString EncodebyBase64(const QString &src); |
| | |
| | | |
| | | QString AES_decryption(const QString &data, const QString &key); |
| | | |
| | | QByteArray AES_decryption_byte(const QString &data, const QString &key); |
| | | |
| | | QString getEncrypt(const QString &data, QString key); |
| | | |
| | | QString getDecrypt(const QString &data, QString key); |
| | |
| | | QString getLocalID(); |
| | | |
| | | QString getWindowsInfo(const QString &cmd); |
| | | |
| | | //授权集中在一起,不同点在于时间 |
| | | void giveLicense(int time); |
| | | void ActiveRecord(QJsonObject jsonObj,QString edition, QString licenseKey); |
| | | |
| | | private slots: |
| | | void on_pushButton_decrypt_clicked(); |
| | | |
| | |
| | | |
| | | void on_pushButton_setversion_clicked(); |
| | | |
| | | void on_pushButton_normal_clicked(); |
| | | |
| | | void on_pushButton_education_clicked(); |
| | | |
| | | void on_pushButton_profession_clicked(); |
| | | |
| | | private: |
| | | Ui::MainWindow *ui; |
| | | |
| | |
| | | QJsonDocument workingjsondoc; |
| | | |
| | | QString key = "9aFUEFjsqHsde4DOhirdskgdznSDHlfb0ae"; |
| | | |
| | | QMap<QString,QString> m_numToInfo; |
| | | }; |
| | | #endif // MAINWINDOW_H |