摘要: dict = { 'a': '1', 'b': '2', 'c': '3', 'd': '4'}# 需要加密数据key = 'abcd'keys = ''for i in key: i = dict[i] keys += str(i)print(keys) 阅读全文
posted @ 2022-02-18 14:44 布都御魂 阅读(73) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: cp936 -*-import base64src = "明文数据"tgt = base64.b64encode(src.encode('UTF-8'))print(tgt)src = base64.b64decode(tgt).decode('utf-8')print( 阅读全文
posted @ 2022-02-18 14:24 布都御魂 阅读(53) 评论(0) 推荐(0) 编辑
摘要: a='lWNuaphrZphoYVNVkpmWmWWYaWZimA=='a=a[::-1]print(a) 阅读全文
posted @ 2022-02-18 11:39 布都御魂 阅读(41) 评论(0) 推荐(0) 编辑