Skip to content

Conversation

@seop-h
Copy link
Contributor

@seop-h seop-h commented Jan 10, 2025

변경 사항

프로젝트 발표회 때 일기 데이터를 어떻게 관리할지에 대해 질문 받은 거 고민하다가 추가한 기능입니다.

Spring Security Crypto와 JPA의 Attribute Converter를 사용해서, NoteContent.content 값을 데이터베이스에 저장할 때는 암호화해서 저장하고, 데이터베이스에서 조회할 때는 복호화해서 가져오도록 했습니다.

데이터베이스에 저장할 때는 암호화된 구문이 저장되도록 하고, 데이터베이스에서 조회할 때는 복호화한 평문으로 전환해서 가져온다.
@seop-h seop-h self-assigned this Jan 10, 2025
@seop-h seop-h merged commit 20c7072 into woozuda:develop Jan 10, 2025
1 check passed
@seop-h seop-h deleted the feature/note-encypt branch January 10, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants