龙舞天

longwutian004
1831 号测试 成员, 2019-10-15 06:37:30 加入
1.9k
个人主页浏览
  • 接口测试时遇到 java 代码加密请求数据,用 python 的我该怎么办?

    2020-07-24 10:56

    Traceback (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.BadPaddingException

    at 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)
    

    使用第一种方法,我这报错了