Method
decodeFile
(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
Tested by
no test coverage detected