
python
文章平均质量分 67
青舍呓语
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python中json文件读写中文问题
import re import os import json if __name__ == '__main__': data = { "sites": { "site": [ { "id": "1", "name": "菜鸟教程", "url": "www.runoob.com" },原创 2022-04-20 14:59:32 · 1625 阅读 · 0 评论 -
凯撒密码实现
凯撒密码实现 可以加密中文 在这里插入代码片 # 只能是数字密码,字母密码会出错 import GUIpy.PublicPy as ppy def Encryption(plaintexts, passwds): i = j = 0 ciphers = [] while i < len(plaintexts): plaintext = int.fr...原创 2019-07-15 18:28:07 · 503 阅读 · 1 评论 -
RSA秘钥
RSA秘钥生成 从Cryco库中拎出来的 秘钥长度需要大于200位,可以很快的生成秘钥对。 from Crypto import Random from Crypto.Math.Numbers import Integer COMPOSITE = 0 PROBABLY_PRIME = 1 class Rsa(object): def __init__(self, p,q,n,e,d,u...原创 2019-07-15 18:36:09 · 398 阅读 · 0 评论