import numpy as npimport mathimport tkinter as tk # 置换密码函数#矩阵密码加密def matrix_ciphertext key key_len = lenkey text_len = lentext num_of_blocks = text_len key_len num_of_shaded_boxes = text_
位置设置
text_label.place(x=100, y=50) text_entry.place(x=200, y=50) key_label.place(x=100, y=100) key_entry.place(x=200, y=100) matrix_check.place(x=100, y=150) keymatrix_check.place(x=200, y=150) rail_check.place(x=300, y=150) additive_check.place(x=100, y=200) multiplicative_check.place(x=200, y=200) affine_check.place(x=300, y=200) cipher_button.place(x=100, y=250) cipher_label.place(x=100, y=300) cipher_text.place(x=200, y=300, width=600, height=100)
root.mainloop()
原文地址: https://www.cveoy.top/t/topic/f2Bq 著作权归作者所有。请勿转载和采集!