-
Notifications
You must be signed in to change notification settings - Fork 172
3des加密bug #12
Copy link
Copy link
Closed
Description
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);
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels