-
接口测试时遇到 java 代码加密请求数据,用 python 的我该怎么办?
2020-07-24 10:56Traceback (most recent call last):
File "F:/python/learning/use_jar.py", line 28, in
res = JDClass.encrytor("1234")
TypeError: No matching overloads found for aes.EncrypAES.encrytor(str), options are:
public java.lang.String aes.EncrypAES.encrytor(java.lang.String) throws java.security.InvalidKeyException,javax.crypto.IllegalBlockSizeException,javax.crypto.BadPaddingExceptionat JPMethod::findOverload(native\common\jp_method.cpp:242) at JPMethod::findOverload(native\common\jp_method.cpp:245) at JPMethod::invoke(native\common\jp_method.cpp:253) at PyJPMethod::__call__(native\python\pyjp_method.cpp:142)
使用第一种方法,我这报错了