自己用python写的编码小工具

本文分享了一款使用Python编写的编码工具,该工具具备JSON格式美化、Base64/32编码、URL编码解码、16进制编码解码以及MD5加密等功能。文章提供了源代码,并已将Python程序转化为可执行文件(exe),读者可直接下载使用。如有需要增加其他编码转换功能,作者鼓励进一步完善。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

更多黑客技能 公众号:暗网黑客
作者:掌控安全学员-xzqxzq

用python写的一款编码工具,包含json格式美化、base64/32编码、url编码解码、16进制编码解码、MD5加密
图片

这里直接把代码贴上了,还有已经把python编译成exe了,有需要可以直接下载附件。

附件下载:

链接:https://pan.baidu.com/s/1eTBDyagfMQCnVJ9PAjBqdQ
提取码:zkaq

要加什么编码转换的可以继续改进。

import json

import base64

import urllib.parse

import binascii

import hashlib

from tkinter import *

from tkinter import ttk

from tkinter import scrolledtext

import tkinter as tk



win = tk.Tk()

win.title('编码转换工具 v1.0    By:天眼')

win.geometry("900x600+300+200")

ttk.Style().configure(".", font=("仿宋", 15)) 





def json1():

    txt = scr1.get('0.0', 'end')

    a = json.loads(txt)#这是以字符串格式转换成json

    b = json.dumps(a,sort_keys=True,indent=4,separators=(',',':'),ensure_ascii=False)

    scr2.insert(END,b)#输出,需要通过插入来输出



def json2():

    scr1.delete('0.0','end')

    scr2.delete('0.0','end')



tab = ttk.Notebook(win)

frame = tk.Frame(tab)

tb1 = tab.add(frame,text = " json格式转换 ")

scr1 = scrolledtext.ScrolledText(frame, width=95, height=17,font=(1))

scr2 = scrolledtext.ScrolledText(frame, width=95, height=17,font=(1))

scr1.place(x = 0,y = 0)

scr2.place(x = 0,y = 285)

button = Button(frame,text="转换",width=10,command = json1)#按钮

button1 = Button(frame,text="清除",width=10,command = json2)#按钮

button.place(x = 800,y = 100)

button1.place(x = 800,y = 390)





#--------------------------------------------

def b64():#编码

    txt = scr3
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值