search

Home  >  Q&A  >  body text

java - 微信公众第三方平台加解密出现InvalidKeyException:illegal Key Size

本地按照这个官方demo上的方案解决了,如上图。但是生产线上是不能够替换这两个文件的。
链接描述

在解密ticket时出现这个问题。求解决方案

PHPzPHPz2896 days ago509

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-04-18 09:57:40

    It seems that the system uses the encryption algorithm controlled by the United States. You have two solutions:

    1. Install the official solution and replace the JRE jar

    2. Find out what encryption algorithm the official uses, and then look for non-export controlled solutions. One of the open source bouncy castles seems to support it

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 09:57:40

    It won’t work without replacement. This is an extended encryption package. The default is only 128-bit encryption. Unable to meet the requirements of WeChat interface

    reply
    0
  • Cancelreply