I'm working on Android Stuido to generate a signed certification, but from the New Key Store option, I need to create two passwords for this certification. Do you know where the difference between them is?
Asked
Active
Viewed 4.1k times
64
-
1IMO you can read here [Signing in Release Mode](https://developer.android.com/tools/publishing/app-signing.html). I think key store is like a container that contains private key, both need to be kept secure. So need 2 passwords. You can read `Securing Your Private Key` section at that link – BNK Aug 31 '15 at 04:51
-
this answer may help you http://stackoverflow.com/a/19876060/3983054 – King of Masses Aug 31 '15 at 05:03
-
related: [Keytool's -storepass vs. -keypass — Why 2 passwords?](https://stackoverflow.com/questions/5954459/keytools-storepass-vs-keypass-why-2-passwords) – Jon May 18 '17 at 17:31
3 Answers
47
Keystore is a binary file that contains a set of private keys.
Private key represents the entity to be identified with the app, such as a person or a company.
So Keystore password is used to open a keystore and simple password is password of private entity stored in keystore file..!!

AndiGeeky
- 11,266
- 6
- 50
- 66
-
8When using jarsigner it only asks for one password - I assume this is the key store password so why does Android Studio's Build -> Generate Signed APK require another password? – Marc Mar 16 '16 at 15:11
-
1
-
4Yes, we signed our Android .apk app with jarsigner and one password. Android Studio "demands" two. – Marc Mar 23 '16 at 14:54
-
Am I correct that both the keystore password and the simple password only exists on your local computer, but neither gets sent with the app to the app store? – kojow7 May 01 '18 at 20:07
9
Key Store password is like master password of other key's Multiple key pairs can be store within a key store. when you try to reuse that key android studio will ask you for key store password.

Shayma Pathan
- 143
- 8
2
As the name suggest the key store is a collection of private and public keys. One can have multiple pairs of public and private keys within a key store.
In simpler terms key store is the directory which holds the key.

JGPhilip
- 1,388
- 17
- 19