打印加密内容

master
tangwenkang 2023-11-06 20:31:04 +08:00
parent b3e318fea4
commit 0ba972b0d4
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ public class VideoServiceImpl implements VideoService {
File localFile = new File(filePath);
// 计算文件的 SHA-256 哈希值比MD5加密更安全
String fileMD5 = calculateFileSHA256(localFile);
System.out.println(fileMD5);
System.out.println("SHA-256加密内容为{}"+fileMD5);
// 检查目录是否存在,如果不存在则创建
File localDirectory = localFile.getParentFile();
if (!localDirectory.exists()) {