keeweb icon indicating copy to clipboard operation
keeweb copied to clipboard

Moving settings to another PC

Open MarcBachmann78 opened this issue 1 year ago • 4 comments

Priority

Low

Version: KeeWeb

v.1.18.7

Environment

Desktop

Operating System

Windows

Range of issue

None

Database Type

None

Environment Copy/Paste

KeeWeb v1.18.7 (dfc6201, 2021-07-18)
Environment: electron v12.0.7
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) KeeWeb/1.18.7 Chrome/89.0.4389.128 Electron/12.0.7 Safari/537.36

Description

I got another laptop (old and new = Windows 11) and want to get all my (remote) password storages to the new laptop.

What I already did:

• Installed newest version on new laptop, existing in C:\Program Files\KeeWeb • Both version on new and old laptop are identical • Copied %APPDATA%\KeeWeb from old laptop to new laptop – before opening KeeWeb for the first time

But when I open KeeWeb on the new laptop I am not having my recent used storages at the start page.

On the old laptop I have 4 storages at the start page:

I got another laptop (old and new = Windows 11) and want to get all my password storages to the new laptop.

What I already did:

• Installed newest version on new laptop, existing in C:\Program Files\KeeWeb • Both version on new and old laptop are identical • Copied %APPDATA%\KeeWeb from old laptop to new laptop – before opening KeeWeb for the first time

But when I open KeeWeb on the new laptop I am not having my recent used storages at the start page.

How can I copy this section, too ? (Without the need to enter all credentials again)

Steps To Reproduce

see description

Expected Behavior

copying %APPDATA% Folder would show all recent used storages on the new laptop too

Logs

No response

Referenced Issues

No response

Attachments: Database kdbx File

No response

Attachments: Screenshots

No response

MarcBachmann78 avatar May 05 '24 13:05 MarcBachmann78

I will need to peel through the code (new to the dev team). I peeled through the files + databases; practically all the files stored in APPDATA, and I saw no mention of existing storage methods being saved in any of those files.

Aetherinox avatar May 08 '24 10:05 Aetherinox

thats why I do not get the storage methods by copying APPDATA to new laptop.

But somewhere are those entries saved:

2024_05_08_16_32_35_KeeWeb

MarcBachmann78 avatar May 08 '24 14:05 MarcBachmann78

From the code I'm reading, I'm going to be more willing to bet that it is stored in the VM heap memory. Which is utilized with both the web and desktop version of KeeWeb.

This memory can be accessed by opening the developer console.

YyGGl5J6Cl

In that memory, I found a storage container

iAVTpYGa2o

Within that memory, I'm finding things like gdriveOAuthToken, onedriveClientId, onedriveClientSecret, etc. And also the linked vault image /drive/root:/New.kdbx. And the methods for connecting a new drive / vault are calling that heap memory.

So as I suspected, these details aren't stored locally within the filesystem. They're stored within your browser, or electron if you're on the desktop version.

I've got to dig deeper as to where localstorage is placed.

Aetherinox avatar May 08 '24 15:05 Aetherinox

Open files and other settings are stored in the filesystem, but they’re encrypted. You can find all of those stored pieces of data by searching SettingsStore.load, for example, the list of files.

Then for the browser, it goes to the localStorage.

On desktop, it calls Launcher.saveConfig that ends up doing this. Here’s the encryption key for this kind of configs.

antelle avatar May 09 '24 06:05 antelle