New step available: Decrypt file 🔐

Encrypt a file on your computer, upload it into your repo and use this step to decrypt it without any further ado.

Storing authentication data in your repo just got simpler. Encrypt a file on your computer, upload it into your repo and use this step to decrypt it without any further ado.

How to use it

1. Locally, create your 22 character passphrase for the encryption:


brew install pwgen
pwgen -s 22 1
Copy code

and pwgen will print the generated passphrase.

2. Encrypt your secret file:


brew install gpg
gpg -c google-services.json
Copy code

This command will ask for your previously generated passphrase and will encrypt the provided file, the encrypted file's extension will be: .gpg

3. during your build decrypt the encrypted file using the step.

undefined

Usecase: Firebase

If your project uses Firebase services, in order to authenticate your application you have to put your google-services.json file (which holds your Firebase authentication data) into your project. As it is a file full of secrets, it is not a good idea to store it in your repository. Previously, the recommended solution was to upload the file to Bitrise and then to download the file to the right location during the build.

Using this step, you now can store the encrypted version of google-services.json in your repository, and on Bitrise you can add and setup the Decrypt file step to decrypt google-services.json.gpg

Happy building! 🤖

Explore more topics

App Development

Learn how to optimize your mobile app deployment processes for iOS, Android, Flutter, ReactNative, and more

Bitrise & Community

Check out the latest from Bitrise and the community. Learn about the upcoming mobile events, employee spotlights, women in tech, and more

Mobile App Releases

Learn how to release faster, better apps on the App Store, Google Play Store, Huawei AppGallery, and other app stores

Mobile DevOps

Learn Mobile DevOps best practices such as DevOps for iOS, Android, and industry-specific DevOps tips for mobile engineers

Mobile Testing & Security

Learn how to optimize mobile testing and security — from automated security checks to robust mobile testing and more.

Product Updates

Check out the latest product updates from Bitrise — Build Insights updates, product news, and more.