python 公钥解密时报错 block type is not 01



 pem_file = os.path.abspath(os.path.join(os.path.dirname(__file__), 'pprsa.pem'))
   g_rsa_foo = RSA.load_pub_key(pem_file)
   ctxt = g_rsa_foo.public_decrypt(sign, RSA.pkcs1_padding)  #在此句报错

这个问题真不懂, 搜了stackoverflow也好像没有找到答案。 求高手

python m2crypto public-key rsa

Sumner 10 years, 4 months ago

Your Answer