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)
使用python 3.5错误读取私钥时出现以下错误:“不支持RSA密钥格式” 以上是我的代码