Skip to content

[OSX] Cannot paste KEY for encrypted DBs #1381

Open

Description

@Stoyvo

Details for the issue

What did you do?

Tried to open encrypted DB, which uses a X. Cannot paste key into GUI

What did you expect to see?

To paste the key

What did you see instead?

Type it manually, every time.

Useful extra information

Realistically, there's no real security caution if paste of db key is allowed. You can paste a password, but you cannot paste in a key...

What operating system are you using?

  • Windows: ( version: ___ )
  • Linux: ( distro: ___ )
  • Mac OS: ( version: 10.12.6 )
  • Other: ___

What is your DB4S version?

  • 3.10.1
  • 3.10.0
  • 3.9.1
  • Other:

Did you also

Activity

  1. revolter commented on May 8, 2018

    @revolter
    Member

    Paste has always worked for me. Can you right click and paste it instead?

  2. karim commented on May 8, 2018

    @karim
    Member

    It is not about security. I believe the Raw key edit-box needs the first two characters to be 0x (hex). It expects them when you paste anything in it. They are already there, but dimmed.

    If your key does not start with 0x then you must type them manually and paste your key afterwards.

  3. Stoyvo commented on May 11, 2018

    @Stoyvo
    Author

    @karim @revolter Thanks for the reply. There was a new line at the beginning of the string that I didn't catch :(

    The paste of invalid data had no validation or warning of error which made be believe paste was broken.

    This issue is no longer a bug. Maybe a suggestion for one day?

  4. karim commented on May 11, 2018

    @karim
    Member

    @Stoyvo The dialog is actually doing some sort of validation to make sure the key is valid. I believe it is this part:

    rawKeyValidator(new QRegExpValidator(QRegExp("0x[a-fA-F0-9]+")))

    But you are right, it does need some improvement. Invalid input should be communicated back to the user instead of silently refusing it.

    I will label this as enhancement and hopefully we can get it done in our next release. Thanks for reporting this to us. 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions