- 博客(4)
- 收藏
- 关注
原创 picgo+onedrive+Typora用onedrive当图床
因为是用gitee当图床的后来gitee开源限制了,换成了onedrive图床
2022-06-14 01:12:36
4187
原创 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
1601
原创 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
364
原创 凯撒密码实现
凯撒密码实现 可以加密中文 在这里插入代码片 # 只能是数字密码,字母密码会出错 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
493
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人