Encrypt database password

Administer Bitbucket Data Center and Server

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

To add extra security to your Bitbucket Data Center and Server instance, you can encrypt the database password that is stored in the bitbucket.properties file. There are different encryption methods for both basic and advanced users. Additionally, you can create your own encryption mechanism.

Your Bitbucket instance needs a plain-text password to connect to the database, so the configuration file will contain all the information needed to decrypt the password. It is necessary to protect access to Bitbucket and database servers to reach the required level of security.

Basic encryption

This method uses a Base64 cipher, which is simple obfuscation. It is a straightforward solution for users who don’t want to store database passwords in plain-text. 

Learn more about basic encryption

Advanced encryption

This method allows you to choose an algorithm to encrypt a database password. It provides more security as you don't have to store the encrypted password anywhere in the configuration file, which makes it difficult for unauthorized parties to find and decrypt it. 

Learn more about advanced encryption

Custom encryption

If you have special requirements for database password encryption, you can create your own encryption mechanism based on our examples.

Learn more about custom encryption

Last modified on Feb 2, 2021

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.