最近做毕业设计,两周自学python,做了一些简单的GUI界面,以下代码为界面源码,明天文件打包EXE以下源码和运行界面展示:
捕获.GIF
捕获1.GIF
捕获2.GIF
window = tk.Tk()
window.title("Welcome to RC4 and WEP change system")
window.geometry('800x600')
def command_file():
window_one = tk.Toplevel(window)
window_one.geometry('800x700')
window_one.title("HELP INFORMATION:")
tk.Label(window_one, text="WEP加密解密模型:", font=font1).place(x=10, y=30)
tk.Label(window_one, text="1:初始化SK由用户自行设置或系统预设,系统预设一般为四个共享密钥", font=font).place(x=10, y=500)
tk.Label(window_one, text="2:IV向量由系统自行生成,具有一定的周期,模拟系统周期为999,IV用于完成一次一密", font=font).place(x=10, y=550)
tk.Label(window_one, text="3:CRC32用于产生原文校验码,用于验证明文是否遭受篡改", font=font).place(x=10, y=600)
canvas = tk.Canvas(window_one, width=700, height=400, bg='white')
img = tk.PhotoImage(file="E:\\pro\\毕业设计成品1_1\\2.gif")
canvas.place(x=10, y=70)
canvas.create_image(0, 0, anchor='nw', image=img)
img.put()
def command_help():
window_one = tk.Toplevel(window)
window_one.geometry('800x700')
window_one.title("HELP INFORMATION:")
tk.Label(window_one, text="RC4改进算法在无线网络安全的应用:", font=font1).place(x=10, y=30)
tk.Label(window_one, text="1:初始化SK(共享密钥经过安全信道传输):", font=font).place(x=10, y=500)
tk.Label(window_one, text="2:初始化密钥对其自身进行加密产生IV,KC和新的共享密钥", font=font).place(x=10, y=550)
tk.Label(window_one, text="3:CRC32用于产生原文校验码,用于验证明文是否遭受篡改:", font=font).place(x=10, y=600)
tk.Label(window_one, text="4:改进算法的思路主要是RC4模块的复用,在IV和KC拼接过程中顺序颠倒", font=font).place(x=10, y=650)
canvas = tk.Canvas(window_one, width=700, height=400, bg='white')
img = tk.PhotoImage(file="E:\\pro\\毕业设计成品1_1\\1.gif")
canvas.place(x=10, y=70)
canvas.create_image(0, 0, anchor='nw', image=img)
img.put()
def time_compare():
window_two = tk.Toplevel(window)
window_two.title("Welcome to RC4 and WEP change system")
window_two.geometry('800x600')
print("本模块为对比时间复杂度模块")
passage = "my name is sunhui i have a big dream 1314 try best 12"
sk = "sh123456789123456"
size_of_message1 = sys.getsizeof(passage) # 单位为字节B
print(size_of_message1)
time1_1