from Crypto.PublicKey import RSA
from Crypto.Signature import PKCS1_v1_5
from Crypto.Hash import SHA
from base64 import b64decode
def wesocket_Data_Receive(request):
Data=request.GET.get('ContentData')
key =open('D:\\WithOldDjango\\AssetManagment\\AssetManagment
\\blog\\templates\\private.key', 'rb')
rsakey = RSA.importKey(key.read())
return HttpResponse(Data)
我在使用Python3.5读取私钥时遇到以下错误错误:“不支持RSA密钥格式” 以上是我的代码
目前没有回答
相关问题 更多 >
编程相关推荐