Merge branch 'dev' into deploy-dev-front
This commit is contained in:
@@ -32,7 +32,7 @@ public class SftpStorageFileUploadStrategy implements FileUploadStrategy {
|
|||||||
private String tmpPath;
|
private String tmpPath;
|
||||||
|
|
||||||
private final SftpConnector sftpConnector;
|
private final SftpConnector sftpConnector;
|
||||||
private final AESEncryptUtil encryptUtil; // EncryptUtil 주입
|
private final AESEncryptUtil aesEncryptUtil; // EncryptUtil 주입
|
||||||
|
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
public void initialize() throws Exception {
|
public void initialize() throws Exception {
|
||||||
@@ -93,7 +93,7 @@ public class SftpStorageFileUploadStrategy implements FileUploadStrategy {
|
|||||||
// 파일 읽기
|
// 파일 읽기
|
||||||
byte[] fileContent = Files.readAllBytes(tmpFile);
|
byte[] fileContent = Files.readAllBytes(tmpFile);
|
||||||
// 암호화
|
// 암호화
|
||||||
byte[] encryptedContent = encryptUtil.encryptAesCbc(fileContent);
|
byte[] encryptedContent = aesEncryptUtil.encryptAesCbc(fileContent);
|
||||||
// 암호화된 내용을 임시 파일로 저장
|
// 암호화된 내용을 임시 파일로 저장
|
||||||
Files.write(encryptedFile, encryptedContent);
|
Files.write(encryptedFile, encryptedContent);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user