whwlsfb/BurpCrypto

3des加密bug

j1anFen opened this issue · 2 comments

BurpCrypto v0.1.7: java.lang.IllegalStateException: java.security.InvalidKeyException: No installed provider supports this key: com.sun.crypto.provider.DESKey

添加DESede加密
burp.des.DesUtil

try {
    String algType = algName.split("/")[0];

    KeySpec desKey = null;
    if (algType.equals("DES")) {
        desKey = new DESKeySpec(config.Key);
    }else {
        desKey = new DESedeKeySpec(config.Key);
    }

    SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(algType);
    sKey = keyFactory.generateSecret(desKey);

} catch (Exception ex) {
    throw fail(ex);
}

感谢您发现问题并提出修改建议,该问题将在下个版本修复。

已在v0.1.8版本中修复。