import rsa signature = rsa.sign(code2, RSA_PRIVATE, 'SHA-1')
报错: Traceback (most recent call last): File "D:/paython/test.py", line 104, in <module> signature = rsa.sign(code2, RSA_PRIVATE, 'SHA-1') File "C:\Python27\lib\rsa\pkcs1.py", line 276, in sign keylength = common.byte_size(priv_key.n) AttributeError: 'str' object has no attribute 'n'
求助!
1
Kilerd 2016-12-03 16:59:51 +08:00 via iPhone
很明显,参数传入不正确
|
3
mcoo1997 OP 小白求助大家
Google 搜了下也没找到解决方案 |