/*网易云音乐缓存文件解码*/
public class Netease {
public static void main(String[] args) {
String input = "music\\input.mp3.uc!";
String output = "music\\output.mp3";
try (BufferedInputStream bis = new BufferedInputStream(new FileInputStream(input));
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(output))) {
byte[] bytes = new byte[1024];
int len;
while ((len = bis.read(bytes)) != -1) {
for (int i = 0; i < len; i++) {
bytes[i] ^= 0xA3;
}
bos.write(bytes, 0, len);
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
System.out.println("やったね!");
}
}
网易云音乐缓存文件解码
最新推荐文章于 2023-03-26 13:44:11 发布