Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3des加密bug #12

Closed
j1anFen opened this issue Mar 13, 2021 · 2 comments
Closed

3des加密bug #12

j1anFen opened this issue Mar 13, 2021 · 2 comments

Comments

@j1anFen
Copy link

j1anFen commented Mar 13, 2021

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);
}
@whwlsfb
Copy link
Owner

whwlsfb commented Mar 14, 2021

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

whwlsfb added a commit that referenced this issue Mar 14, 2021
@j1anFen j1anFen closed this as completed Mar 18, 2021
@whwlsfb
Copy link
Owner

whwlsfb commented Mar 22, 2021

已在v0.1.8版本中修复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants