当前位置: 首页 > news >正文

查询网站用什么做的网站优化资源

查询网站用什么做的,网站优化资源,linux wordpress 下载文件,给企业做网站的平台埃特巴什码加解密小程序 这几天在看CTF相关的课程,涉及到古典密码学和近代密码学还有现代密码学。 简单替换密码 Atbash Cipher 埃特巴什码(Atbash Cipher)其实可以视为下面要介绍的简单替换密码的特例,它使用字母表中的最后 一个字母代表第一个字母…

埃特巴什码加解密小程序

这几天在看CTF相关的课程,涉及到古典密码学和近代密码学还有现代密码学。

简单替换密码

Atbash Cipher

埃特巴什码(Atbash Cipher)其实可以视为下面要介绍的简单替换密码的特例,它使用字母表中的最后 一个字母代表第一个字母,倒数第二个字母代表第二个字母。在罗马字母表中,它是这样出现的:

ABCDEFGHIJKLMNOPQRSTUVWXYZ 明码表 
ZYXWVUTSRQPONMLKJIHGFEDCBA 密码表

比如埃 码

明文:the quick brown fox jumps over the lazy dog 
密文:gsv jfrxp yildm ulc qfnkh levi gsv ozab wlt

按照上面的规则,我编了一个小工具。源码如下:

import tkinter as tk
from tkinter import messagebox
code_dict  = {'A': 'Z', 'B': 'Y', 'C': 'X', 'D': 'W', 'E': 'V', 'F': 'U', 'G': 'T', 'H': 'S', 'I': 'R', 'J': 'Q', 'K': 'P', 'L': 'O', 'M': 'N', 'N': 'M', 'O': 'L', 'P': 'K', 'Q': 'J', 'R': 'I', 'S': 'H', 'T': 'G', 'U': 'F', 'V': 'E', 'W': 'D', 'X': 'C', 'Y': 'B', 'Z': 'A'}def encrypt(plaintext):ciphertext = ''for char in plaintext.upper():if char.isalpha():ciphertext += code_dict.get(char, '')else:ciphertext += charreturn ciphertextdef decrypt(ciphertext):plaintext = ''for char in ciphertext.upper():if char.isalpha():for k, v in code_dict.items():if char == v:plaintext += kelse:plaintext += charreturn plaintextclass CaesarCipherGUI:def __init__(self, master):self.master = mastermaster.title("埃特巴什码加解密--微信号强壮Python")# Create a frame to hold the input and output fieldsself.frame = tk.Frame(master)self.frame.pack(fill=tk.BOTH, expand=1)# Create the input fieldself.input_label = tk.Label(self.frame, text="输入信息", anchor='w', justify='left')self.input_label.pack()self.input_entry = tk.Entry(self.frame, width=40, justify='left')self.input_entry.pack()# Create the buttonsself.button_frame = tk.Frame(self.frame)self.button_frame.pack(fill=tk.X)self.encrypt_button = tk.Button(self.button_frame, text="加 密", command=self.encrypt_message)self.encrypt_button.pack(side='left', padx=5)self.decrypt_button = tk.Button(self.button_frame, text="解 密", command=self.decrypt_message)self.decrypt_button.pack(side='left', padx=25)# Create the output fieldself.output_label = tk.Label(self.frame, text="输 出", anchor='w')self.output_label.pack()self.output_text = tk.Text(self.frame, width=52, height=10, wrap='word')self.output_text.pack()def encrypt_message(self):plaintext = self.input_entry.get()ciphertext = encrypt(plaintext).lower()self.output_text.delete('1.0', tk.END)self.output_text.insert('1.0', ciphertext)def decrypt_message(self):ciphertext = self.input_entry.get()plaintext = decrypt(ciphertext).lower()self.output_text.delete('1.0', tk.END)self.output_text.insert('1.0', plaintext)root = tk.Tk()
my_gui = CaesarCipherGUI(root)
root.mainloop()

备注:界面是用AI生成,稍加修改。

运行结果如下图:

Screenshot 2024-06-25 at 22.24.10

http://www.mmbaike.com/news/100033.html

相关文章:

  • 1688药品批发网vue seo优化
  • 柳州正规网站建设加盟100个经典创意营销方案
  • 重庆网站建站模板公司人民日报最新新闻
  • 右面是某网站建设立项需求百度站长平台如何添加网站
  • 天津 网站建设seo内容优化是什么意思
  • 图片上传 网站建设教学视频谷歌搜索引擎为什么国内用不了
  • 网站代做多长时间seo全国最好的公司
  • 做网站的是什么工程师媒体平台推广
  • 黄骅港站推广代理公司
  • 企业网站优化兴田德润优惠系统优化app最新版
  • 做网站客户端手机搭建网站
  • 360建站abc官网品牌型网站制作价格
  • 合肥企业网站建设公司哪家好信息流优化师培训机构
  • 怎么利用wordpress管理站点seo 什么意思
  • 有没有个人做网站的南昌seo
  • 上海网站营销搜索引擎排名优化建议
  • 怎么封闭网站天津网站快速排名提升
  • 网站建设的商业阶段搜索引擎排名国内
  • 中国建筑装饰网怎么样保定seo建站
  • 网站快照倒退怎么解决属于免费的网络营销方式
  • 湛江人做寄生虫网站市场营销最有效的手段
  • 修改网站照片需要怎么做网站结构有哪几种
  • 做黑枸杞的公司网站把百度网址大全设为首页
  • 网站内页banner一般做多高个人网站制作多少钱
  • 做网站编辑工作好不好趣丁号友情链接
  • 深圳广告设计公司网站网站推广系统方案
  • wordpress安装 centosseo诊断报告怎么写
  • wordpress 多重筛选seo模拟点击算法
  • 网站开发技术难点自媒体运营
  • Wordpress 数据10万搜索引擎优化结果