摘要:
import hashlib obj_hashlib = hashlib.md5() data = '今天天气很好' obj_hashlib.update(data.encode('utf-8')) print(obj_hashlib.hexdigest()) data2 = '今天天气很好.' o 阅读全文
摘要:
import hashlib obj_hashlib = hashlib.md5() data = '今天天气很好' obj_hashlib.update(data.encode('utf-8')) print(obj_hashlib.hexdigest()) data2 = '今天天气很好.' o 阅读全文
摘要:
import rsa # key = rsa.newkeys(3000)#生成随机秘钥 # print(key) # privateKey = key[1]#私钥 # publicKey = key[0]#公钥 publicKey,privateKey = rsa.newkeys(512) prin 阅读全文
|