dbeaver-creds

QA PowerShell Gallery Version (including pre-releases) PowerShell Gallery Platform Support

Decrypt DBeaver’s credentials-config.json file and display the output (a JSON string).

You can use this in one of three ways depending on your platform and shell:

Installation

Place dbeaver-creds (or dbeaver-creds.bat) in PATH.

PowerShell

Install-Module -Name DBeaverCreds

Usage

dbeaver-creds

If the credentials file cannot be found, the exit status will be > 0.

PowerShell

Show-DBeaver-Credential-Json
# or the alias:
dbeaver-creds

Development

Requirements:

Notes

The decryption key is from the DBeaver source.

It can be converted to hexadecimal like so in Python:

import struct
as_hex = struct.pack('<16b', 0, 1, 2, etc).hex()

update-key.sh demonstrates conversion using shell script.

Tasks