Menu

Copy and paste between KeePasses

Help
Hacker
2019-01-29
2019-09-03
  • Hacker

    Hacker - 2019-01-29

    Hi,
    On my home and my work computer I have separate KeePass databases. Sometimes when at work I need an entry from the home database, so I connect remotely to my home computer and copy the entry field by field, however, it would be much more convenient to copy an entire entry in one copy and paste operation.

    I had hoped right click - Clipboard - Copy Entries on my home computer would do what I'd like but upon pasting the entry using right click - Clipboard - Paste Entries on my work computer I get an error message saying "Key not valid for use in specified state". I assume it's because the databases use different passwords or a different amount of iterations.

    Would it be possible to add a function where I could copy a whole entry (from the home computer) to the clipboard and paste it into KeePass on my work computer? It can certainly be plaintext since copying and pasting all fields one by one uses plaintext, too.

    As for workarounds, I do not really want to use any cloud solution such as Dropbox.

    Thank you.

     

    Last edit: Hacker 2019-01-29
  • Paul

    Paul - 2019-01-30

    Put a copy of your home database on a USB stick and take it to work and open it in KeePass. You will now have both work and home databases open.

    cheers, Paul

     
  • Hacker

    Hacker - 2019-01-30

    Hello Paul,
    Thank you for your suggestion of a workaround, however, accessing both databases at the same time is not an issue. The problem is with copying entries from one to another.

     
  • Paul

    Paul - 2019-01-31

    If both are open in the same KeePass you can copy between them easily.

    cheers, Paul

     
  • Hacker

    Hacker - 2019-01-31

    Hi Paul,
    Oh, that's nice, I didn't know you could have several databases open at the same time. This way I can copy the database from the remote machine, open it locally and copy & paste the necessary entries. Two steps more than my request, but workable.

    I'd still appreciate if I could easily (using a keyboard shortcut or menu item) export and import selected items as plaintext.

    Thank you.

     

    Last edit: Hacker 2019-01-31
  • Paul

    Paul - 2019-01-31

    Right click on the entry(ies) you want.
    Selected Entries > Export.

    cheers, Paul

     
  • Hacker

    Hacker - 2019-01-31

    Yup, but that does not export to the clipboard, so it's not really faster than the other workaround.

     
  • Dominik Reichl

    Dominik Reichl - 2019-02-26

    I've added a command for this scenario now. In the main menu 'Entry' → 'Data Exchange', there now are two commands for copying a whole entry to the clipboard:

    • 'Copy Entry (Encrypted)'. This command encrypts the data for the current user using the Windows DPAPI. This is the behavior of the previous 'Copy Entries' command in KeePass 2.41.
    • 'Copy Entry (Unencrypted)'. The copied data can be read and pasted everywhere.

    Here's the latest development snapshot for testing:
    https://keepass.info/filepool/KeePass_190226.zip

    Thanks and best regards,
    Dominik

     
  • Hacker

    Hacker - 2019-03-01

    It works! Very much appreciated! I have now donated 20 € as a small thank you.

     
  • Dominik Reichl

    Dominik Reichl - 2019-03-01

    Thanks :-)

     
  • Vincent

    Vincent - 2019-09-03

    Hello Dominik,

    After updating from KeePass 2.38 to KeePass 2.42 I encountered the same problem as Hacker.
    By right clicking on an entry and selecting "Clipboard - Copy Entry or Paste Entry" I could quite quickly copy entries between data bases that were open at the same time.
    Now the menu path is longer and much more difficult to find.

    Can the menu item "Data Exchange" be added again to the entrie's context menu?

    Thanks, best regards,
    Vincent

     

Log in to post a comment.