备用小工具脚本

发布时间 2023-12-18 23:13:04作者: 写忧

-不定期更新,问就是没啥用

1.base64自定义编码表解码

import base64

yourTable=""
yourstr=""
d=base64.b64decode(yourstr.translate(str.maketrans(yourTable,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")))
s=str(base64.b64encode(yourstr.encode())).translate(str.maketrans("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yourTable))