feat - 전반적인 기능 추가
SpecialSource Backend CI/CD / build-and-deploy (push) Successful in 1m43s

This commit is contained in:
sungjin.choi
2026-05-28 14:32:11 +09:00
parent a7077fc693
commit 1d42aacd6e
4 changed files with 11 additions and 38 deletions
@@ -1,33 +0,0 @@
package company.specialsource.config;
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.jasypt.encryption.StringEncryptor;
import org.jasypt.encryption.pbe.PooledPBEStringEncryptor;
import org.jasypt.encryption.pbe.config.SimpleStringPBEConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@EnableEncryptableProperties
public class JasyptConfig {
@Value("${jasypt.encryptor.password}")
private String password;
@Bean("jasyptStringEncryptor")
public StringEncryptor stringEncryptor() {
PooledPBEStringEncryptor encryptor = new PooledPBEStringEncryptor();
SimpleStringPBEConfig config = new SimpleStringPBEConfig();
config.setPassword(password); // 암호화 키 (절대 외부에 유출 금지!)
config.setAlgorithm("PBEWithMD5AndDES");
config.setKeyObtentionIterations("1000");
config.setPoolSize("1");
config.setProviderName("SunJCE");
config.setSaltGeneratorClassName("org.jasypt.salt.RandomSaltGenerator");
config.setIvGeneratorClassName("org.jasypt.iv.NoIvGenerator");
config.setStringOutputType("base64");
encryptor.setConfig(config);
return encryptor;
}
}
+5 -1
View File
@@ -1,6 +1,6 @@
spring:
datasource:
url: jdbc:postgresql://192.168.0.215:5435/mydb
url: jdbc:postgresql://localhost:5435/mydb
username: headporter
password: ENC(Gg03NzjjcVOrFSXoBrPEusNgDNbYOPO4)
driver-class-name: org.postgresql.Driver
@@ -16,6 +16,10 @@ spring:
jasypt:
encryptor:
password: 81sungjin1015
algorithm: PBEWithMD5AndDES
iv-generator-classname: org.jasypt.iv.NoIvGenerator
key-obtention-iterations: 1000
pool-size: 1
jwt:
# 256비트 이상이어야 하므로 영문+숫자 (최소 32글자 이상)