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

Method decodeFile

src/burp/ui/SM4.java:55–60  ·  view source on GitHub ↗
(String inputFilePath, String outputFilePath, String key)

Source from the content-addressed store, hash-verified

53 }
54
55 public static void decodeFile(String inputFilePath, String outputFilePath, String key) throws Exception {
56 byte[] inputBytes = Files.readAllBytes(Paths.get(inputFilePath));
57 byte[] decodeBytes = decode(inputBytes, key.getBytes(StandardCharsets.UTF_8));
58 Files.write(Paths.get(outputFilePath), decodeBytes);
59 System.out.println("File decode successfully.");
60 }
61
62
63

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.95

Tested by

no test coverage detected