MCPcopy Create free account
hub / github.com/f0ng/autoDecoder / decode

Method decode

src/burp/ui/SM4.java:64–70  ·  view source on GitHub ↗
(byte[] inputBytes, byte[] key)

Source from the content-addressed store, hash-verified

62
63
64 private static byte[] decode(byte[] inputBytes, byte[] key) throws Exception {
65 Cipher cipher = Cipher.getInstance(transformation);
66 SecretKeySpec secretKeySpec = new SecretKeySpec(key, name);
67 IvParameterSpec ivParameterSpec = new IvParameterSpec(Default_iv.getBytes(StandardCharsets.UTF_8));
68 cipher.init(Cipher.DECRYPT_MODE, secretKeySpec, ivParameterSpec);
69 return cipher.doFinal(inputBytes);
70 }
71
72 public static void main(String[] args) throws Exception {
73// Security.addProvider(new BouncyCastleProvider());

Callers 6

decodeFileMethod · 0.95
des_encryptFunction · 0.80
des_decryptFunction · 0.80
mainMethod · 0.80
base64ToHexMethod · 0.80
decryptKeyivmodeMethod · 0.80

Calls

no outgoing calls

Tested by 3

des_encryptFunction · 0.64
des_decryptFunction · 0.64
base64ToHexMethod · 0.64