ManageApplication.java 854 Bytes
package com.lego;

import com.lego.common.utils.EncryptUtils;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;

/**
 * @author chentao
 * @date 2025/8/7
 */
public class ManageApplication {
    public static void main(String[] args) {
        String path1 = "f:/1.mp4";
        String path2 = "f:/2.mp4";
        try{
            FileInputStream inputStream = new FileInputStream(path1);
            FileOutputStream outputStream = new FileOutputStream(path2);
            byte[] arr = new byte[inputStream.available()];
            inputStream.read(arr);
            byte[] decrypt = EncryptUtils.decryptByAes(arr);
            outputStream.write(decrypt);

            inputStream.close();
            outputStream.close();
        }
        catch (Exception e){
            e.printStackTrace();
        }
    }
}