Skip to content

feat(170): 민감정보 마스킹#236

Draft
GentleDot wants to merge 1 commit into
mainfrom
#170/card-list-with-masking
Draft

feat(170): 민감정보 마스킹#236
GentleDot wants to merge 1 commit into
mainfrom
#170/card-list-with-masking

Conversation

@GentleDot
Copy link
Copy Markdown
Contributor

개요

  • maskIt 라이브러리 사용
    • 카드 번호 커스텀 설정에 버그가 있음을 확인 ㅠㅠㅠㅠㅠㅠㅠㅠ
    • 첫 4자리를 잘라서 붙이는 방식으로 구현
  • userPaymentMethodException 신설

티켓 번호 : #170

PR 유형

  • 새로운 기능 추가
  • 기타 (설명을 남겨주세요.) -> jitpack.io 에서 MaskIt 붙여서 구성했습니다.

- maskIt 라이브러리 사용
- 카드 번호 커스텀 설정에 버그가 있음을 확인 ㅠㅠㅠㅠㅠㅠㅠㅠ
- userPaymentMethodException 신설
@GentleDot GentleDot requested a review from a team as a code owner February 15, 2025 07:27
@GentleDot GentleDot requested review from a team, InvestLee, Raemerrr and devch37 and removed request for a team February 15, 2025 07:27
Copy link
Copy Markdown
Contributor

@InvestLee InvestLee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생많으셨습니다.

@GentleDot GentleDot requested a review from a team February 15, 2025 07:54
Copy link
Copy Markdown
Contributor

@devch37 devch37 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 상일님의 오픈 소스라니 멋있습니다 ㅎㅎ ! 고생하셨습니다 !

val masked = cardMaskingModule.mask(cardNumber)
if (split.size != 4) throw UserPaymentMethodException.InvalidCardNumberException(masked)
val firstNumberPart = split[0]
return """$firstNumberPart${masked.substring(4)}"""
Copy link
Copy Markdown
Contributor Author

@GentleDot GentleDot Feb 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

차후에 maskIt version up 해서
1-2-3-4 <- 중에 원하는 구간을 마스킹하도록 변경해보겠습니다.

@GentleDot GentleDot marked this pull request as draft February 18, 2025 12:44
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