Encoding/decoding Android Key

Google Android Studio includes a tool to create a new key in the Generate Signed Bundle or APK wizard but here's how you can encode and decode your own key that is used to encrypt and decrypt your Google Android Playstore app package before deploying

Encoding

Step 1

openssl base64 < akadenia.jks | tr -d '\n' | tee akadenia.jks.base64.txt

Step 2

openssl enc -base64 -in key.jks -out signing_key.b64 | tr -d '\n' | tee akadenia.jks.base64.txt

Decoding

openssl enc -d -base64 -in signing_key.b64 -out akadenia.jks

This is not something you would run into every day but on the off chance that your team or client requires some custom certificate to encode and decode your Google Android Playstore app then you'll find these steps useful.

Written by

Guy Shahine

Guy Shahine

Founder / CEO

guyshahine.com

Guy is a software engineer with over 20 years of experience in building video games, web, mobile and cloud applications. He has a passion for creating high-quality software solutions that are scalable, reliable, and user-friendly. Guy is also an advocate for agile methodologies and best practices in software development.

View profile →

5 from 1 vote

Tap a star to rate

More posts

How to create an AOSP emulator

How to create an AOSP emulator

Step-by-Step Guide: Creating an AOSP Emulator for Android Development

Aug 21, 2023
Bits, Bytes and Qubits—Here Comes the Quantum Computer

Bits, Bytes and Qubits—Here Comes the Quantum Computer

Exploring the Quantum Frontier: Journey into advanced computing

Aug 21, 2023