Skip to content

[BUG] copying hidden password in edit screen copies replaced characters #823

Open
@EdJoPaTo

Description

@EdJoPaTo

Preliminaries
I have ensured that:

  • I am running the latest version of Strongbox on the App Store by searching for Strongbox and clicking into it to see the Update button (or not)
  • I have performed a full restart of my device no matter how annoying that is

Versions

On iOS:

  • Device: iPhone 14 Pro
  • OS iOS 18.2

** Strongbox Version **

  • Version: 1.60.30 (5115) from TestFlight

Describe the bug
A clear and concise description of what the bug is.

When creating a new entry and still being in the edit screen, the Password is already generated but hidden. When in a public space where I don’t want to unhide it, I can still copy it around without anyone seeing it.
But this doesn’t work as replaced characters (•••) are copied with the length of the actual password instead.

workaround: save the unfinished edit progress, copy the password and edit it again. This creates an additional history entry.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new entry
  2. double tap the pregenerated password
  3. tap the copy button that iOS presents over the marked text
  4. paste it in some clear text field

Expected behavior
A clear and concise description of what you expected to happen.

The password should be copied as is without being shown.

Alternatively no copy button should be displayed by iOS and a custom button should be provided.

Screenshots & Recordings
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions