Skip to content

Decrypt encrypted database password in mirth.properties file #6324

Answered by jonbartels
abhausb2 asked this question in Q&A
Discussion options

You must be logged in to vote

Take a look at https://github.com/nextgenhealthcare/connect/blob/master/server/src/com/mirth/connect/server/controllers/DefaultConfigurationController.java#L1339

See how the password is decrypted and stored in memory in the databaseConfig object?

You can get an instance of the ConfigurationController then call getDatabaseSettings() and get the username, password, etc.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@abhausb2
Comment options

Answer selected by abhausb2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants