Kunzisoft / KeePassDX

Lightweight vault and password manager for Android, KeePassDX allows editing encrypted data in a single file in KeePass format and fill in the forms in a secure way.
https://www.keepassdx.com/
GNU General Public License v3.0
4.55k stars 269 forks source link

Show Spaces in Passwords #1691

Open CrazyCraftix opened 10 months ago

CrazyCraftix commented 10 months ago

Problem

When viewing a password (e.g. for manually typing it on another device), spaces can be invisible. Here's a screenshot: In this password, there is no space at the end of the first line, however there are spaces at the end of the second and third lines that are displayed.

This took me a while to figure out. First I thought early line wraps were a safe indication for a space, however this example shows otherwise. Presumably the first line in this example wraps because of the '0'?

This is also an issue with newlines in the password, but that really doesn't make sense to do, so I don't think it matters.

Solution Idea

I think there should be some indication of a space.

My Idea is to display a different (potentially configurable) character instead of Spaces, e.g. this: '␣'. But this would be a problem when that character is actually in the password. So maybe working with colors could help, like using a very light gray for the space replacement. I was also surprised to see that putting '␣' in a password doesn't highlight it green like all the other weird symbols.