Skip to content

3des加密bug #12

@j1anFen

Description

@j1anFen

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions