side6提交

This commit is contained in:
clear committed 2023-04-11 10:07:06 +08:00
1 parent d97ce28dc0
commit f619352acb
2 files changed
+22 -16

No files matched your search

+5 -6
View File
@@ -3,12 +3,11 @@ import wmi
import ntplib
import datetime
import time
import urllib3
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PySide6.QtCore import QCryptographicHash,QByteArray,QDateTime,QSettings
# from PySide6.QtUiTools import QUiLoader
# from PySide6.QtWidgets import *
def get_disk_sn():
"""
@@ -30,7 +29,7 @@ def get_clear_md5_32(in_str):
byte_pwd = bytes(in_str, encoding='utf-8')
byte_pwd_md5 = QCryptographicHash.hash(byte_pwd, QCryptographicHash.Md5)
byte_pwd_md5 = QCryptographicHash.hash(byte_pwd, QCryptographicHash.Algorithm.Md5)
str_pwd_md5_b = byte_pwd_md5.toHex()
@@ -64,7 +63,7 @@ def is_time_ok(pm2):
return False;
time_stamp = int(get_time_stamp10())
clear_time_stamp = pm2_4.toTime_t()
clear_time_stamp = pm2_4.toMSecsSinceEpoch()
if clear_time_stamp > time_stamp: # 判断授权结束日期是否晚于当前时间
return True
+17 -10
View File
@@ -1,27 +1,34 @@
from PyQt5 import QtWidgets
from PySide6.QtCore import QFile, QIODevice
from PySide6.QtUiTools import QUiLoader
from PySide6.QtWidgets import QApplication, QMessageBox
# from PySide6.QtCore import *
# from PySide6.QtUiTools import *
# from PySide6.QtWidgets import *
import sys
import password
import pyperclip
import clear_pm_py
if __name__ == "__main__":
app = QtWidgets.QApplication(sys.argv)
app = QApplication(sys.argv)
file_ok, pm1, pm2 = password.get_pm1_2_pm2()
file_ok, pm1, pm2 = clear_pm_py.get_pm1_2_pm2()
if not file_ok:
print(file_ok, pm1, pm2, password.get_disk_sn())
pyperclip.copy(password.get_disk_sn())
QtWidgets.QMessageBox.information(None, "ERROR", "Runtime Error 0x00:" + password.get_disk_sn())
pyperclip.copy(password.get_disk_sn())
print(file_ok, pm1, pm2, clear_pm_py.get_disk_sn())
pyperclip.copy(clear_pm_py.get_disk_sn())
QMessageBox.information(None, "ERROR", "Runtime Error 0x00:" + clear_pm_py.get_disk_sn())
pyperclip.copy(clear_pm_py.get_disk_sn())
sys.exit()
pass_ok, pass_id = password.is_pass(pm1, pm2)
pass_ok, pass_id = clear_pm_py.is_pass(pm1, pm2)
if not pass_ok:
print(pass_ok, pass_id)
pyperclip.copy(pass_id)
QtWidgets.QMessageBox.information(None, "ERROR", "Runtime Error 0x01:" + pass_id)
QMessageBox.information(None, "ERROR", "Runtime Error 0x01:" + pass_id)
pyperclip.copy(pass_id)
sys.exit()
print('pass ok')
sys.exit(app.exec_())
# nuitka --mingw64 --module --show-progress --output-dir=myPyds dir_a.py