Skip to content

fix: obfuscation - #66

Merged
OffRange merged 2 commits into
v2from
fix/obfuscation
Aug 1, 2026
Merged

fix: obfuscation#66
OffRange merged 2 commits into
v2from
fix/obfuscation

Conversation

@OffRange

@OffRange OffRange commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Closes: #63

Copilot AI review requested due to automatic review settings August 1, 2026 17:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Ready to approve

The changes directly address the reported obfuscation bug with targeted code updates and expanded test coverage.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

Fixes the obfuscation behavior used in item viewing flows so that secrets are no longer partially revealed (e.g., letters/symbols), and adds configurability for which characters (like formatting spaces) remain visible. This aligns with Issue #63, where obfuscation previously only applied to digits in viewing screens.

Changes:

  • Update ObfuscatedString.hidden to obfuscate all non-preserved characters (not just digits), with an opt-in preservedChars set.
  • Expand unit tests to cover default behavior, configured preserved characters, and mixed content cases.
  • Update credit card viewing code to preserve formatting spaces while still revealing the configured suffix.
File summaries
File Description
feature/item/view/src/test/kotlin/de/davis/keygo/feature/item/view/login/model/ObfuscatedStringTest.kt Adds/updates tests to validate new obfuscation + preservation behavior.
feature/item/view/src/main/kotlin/de/davis/keygo/feature/item/view/login/model/ObfuscatedString.kt Changes obfuscation algorithm and introduces preservedChars configuration.
feature/item/view/src/main/kotlin/de/davis/keygo/feature/item/view/creditcard/ViewCreditCardViewModel.kt Preserves spaces in formatted card numbers while obfuscating content.
feature/item/view/src/main/kotlin/de/davis/keygo/feature/item/view/creditcard/ViewCreditCardContent.kt Updates preview to match new obfuscation configuration for card numbers.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

@OffRange
OffRange merged commit 5cb98ca into v2 Aug 1, 2026
9 checks passed
@OffRange
OffRange deleted the fix/obfuscation branch August 1, 2026 17:55
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.

Fix obfuscation

2 participants