Bug Days

DBeaver Password Decrypter !

How to retrieve/decrypt passwords stored in DBeaver connection (DBeaver 6.1.3+)
  1. Locate DBeaver credentials-config.json file
    In my case, it was in this location ~/Library/DBeaverData/workspace6/General/.dbeaver/credentials-config.json. (My DBeaver Version was 23.3.0.20231203XXXX and it was on Mac OSX Ventura.)
  2. Decrypt the credentials-config.json file
      
  3. Correlate with data-sources.json
    Locate data-sources.json file. It should be in the same folder as credentials-config.json. Then use the connectionId from the above table to find the connection details in data-sources.json.
How to retrieve/decrypt password stored in DBeaver (Pre 6.1.3) connection
  1. Locate DBeaver connection details file.
    In my case, it was in this location ~/.dbeaver/General/.dbeaver-data-sources.xml. (My DBeaver version was 3.5.8 and it was on Mac OSX Mojave). This file is hidden, so keep that in mind when you look for it.
  2. Locate your interested Datasource Definition node in that file.
  3. Decrypt the password
    Unfortunately, everything is in plain text except password, as you can see. Copy that encrypted password and paste in this form and click decrypt. Voila! You have decrypted password.
    Encrypted Password Here!

Update for DBeaver 6.0.3
Location of the file is changed to ~/.dbeaver4/General/.dbeaver-data-sources.xml. Just follow rest of the steps

Shameless Plug

If this helped you, I would definitely appreciate a 👍 for my SO answer