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:
openssl
and dd
to be in PATH
.Show-DBeaver-Credential-Json
(alias dbeaver-creds
).
This does not require openssl
or dd
to function.Place dbeaver-creds
(or dbeaver-creds.bat
) in PATH
.
Install-Module -Name DBeaverCreds
dbeaver-creds
If the credentials file cannot be found, the exit status will be > 0.
Show-DBeaver-Credential-Json
# or the alias:
dbeaver-creds
Requirements:
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.
yarn format
: to format the project’s files.yarn qa
: Perform a QA check.yarn update-key
or update-key.sh
: update the key in dbeaver-creds
.