Skip to content

Commit

Permalink
chore: 컨벤션 맞게 수정 및 오타 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
juno-junho committed Oct 25, 2023
1 parent c029257 commit c80bd5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
@Profile("develop")
@Configuration
public class PropertiesConfig {

@Value("${jasypt.encryptor.password}")
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/com/spaceclub/global/utils/EncryptionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ class EncryptionTest {
String password = "";
String urlResult = encryptor.encrypt(url);
String usernameResult = encryptor.encrypt(username);
String passwordReesult = encryptor.encrypt(password);
String passwordResult = encryptor.encrypt(password);

System.out.println("url plain : " + encryptor.decrypt(urlResult)); //복호화
System.out.println("url encoding : " + urlResult); //암호화 (설정파일에 사용)

System.out.println("username plain : " + encryptor.decrypt(usernameResult));//복호화
System.out.println("username encoding : " + usernameResult); //암호화 (설정파일에 사용)

System.out.println("password plain : " + encryptor.decrypt(passwordReesult));//복호화
System.out.println("password encoding : " + passwordReesult); //암호화 (설정파일에 사용)
System.out.println("password plain : " + encryptor.decrypt(passwordResult));//복호화
System.out.println("password encoding : " + passwordResult); //암호화 (설정파일에 사용)
}

}

0 comments on commit c80bd5c

Please sign in to comment.