Android Development

Google's android guide Home Contact

Android Key Stores

What is a Keysore?

Kaystore is a critical component of Android's security architecture. Android apps need to be signed in order to be installed. Keystores is a storage mechanism for crypotographic keys and security certificates. The Android Keystore is a secure system provided by the Android operating system that allows developers to store cryptographic keys in a secure, hardware-backed container. This container is isolated from the rest of the operating system and is designed to prevent unauthorized access to the keys stored within it. The Keystore can be used to generate, store, and use cryptographic keys for a variety of purposes, including encryption, decryption, digital signing, and more. The Keystore is also used by the Android system itself to secure sensitive information such as passwords, PINs, and biometric data.

Debug Keystore

The debug keystore is a default keystore provided by the Android SDK for debugging purposes only. It is used to sign an Android app during development. It needs a specific alias and password combination "androiddebugkey", and the password is "android". Debug jeystore file names as "debug.keystore" can be found in local computer's ".android" directory. It is not secure (private key is publicaly available) and should not be used for production-ready apps.

Release Keystore

After testing and debugging the app, and before submitting to Google play store, a release keystore file, with one or more certificates need to be created. A release keystore is a private key and certificate pair used to sign and distribute a production-ready Android app. It is generated using keystore utility tht comes with SDK. Keystore file need to be stored safely, without losing password of the keystore or the certificates within. It is critical to ensure the authenticity and integrity of the app, when distributed to others.