public class XLauncher implements XConstants {
public final String[] args;
public final XDecryptor xDecryptor;
public final XEncryptor xEncryptor;
public final XKey xKey;
public XLauncher(String... args) throws Exception {
this.args = args;
String algorithm = DEFAULT_ALGORITHM;
int keysize = DEFAULT_KEYSIZE;
int ivsize = DEFAULT_IVSIZE;
**String password = "xxxxxxxxxxxxxxxx";**
String keypath = null;
... ...
OK. C++ 解密部分代码
//解密 mbedtls_aes_crypt_ecb( &aes_ctx, MBEDTLS_AES_DECRYPT, input, outout ); if (b == 381) { // 分块后剩余字节数 memcpy(&dest[6096], outout, **9**); } else { memcpy(&dest[b * 16], outout, 16); } b++;
分块数目和输出字节需要根据生成的数据大小重新计算。本人获取得大小为6672 .b=417if (b == 417) { // 分块后剩余字节数 memcpy(&dest[6672], outout, 0); }
成功运行Originally posted by @Ftrybe in https://github.com/core-lib/xjar/issues/1#issuecomment-515316314