Lost keystore alias but have file and password use

2020-02-24 13:19发布

recently I added a new alias to my keystore to sign my app.

Now I lost the new generated file with the alias, but remember the password and the alias name and have an older copy the file. Is there a way to recreate the alias using this things?

4条回答
仙女界的扛把子
2楼-- · 2020-02-24 13:36

Open your key store (.jks) file with text editor. It will display binary form of data. The readable text in the first line is your key alias.

For example, your key alias in the following binary data is the key alias.

þíþí your key alias UYY_ 0‚þ0 +* ‚êa÷í–ØRö}ðžá䶈ùÎL\ô©2‘wå¥H¨V †¸®Àµ£ð×þ7—â;TÁÙcsª”ž˜4ÝÉ'AÀì,’„×S¼ðßÅ'€Õ¡ó‚˜ ö!y’Çåx|(woÁh4u-û†‚‡§Qȸ|ˆ³”ÜæûZŽ²a±O­´¢^À.ªbÅ“e†6 É秮j§˜y ößÿØ0Çd@ /Ã?®¦ìé¼/§Zq””Ê•©„=~Ùì¢>º}DàO<Ö¹SbpÎŒ@Ø„°^Í^e»>¾ü«nM( "Nbûh·2ðÁ0¯ç¿61êè“[.ÇzeYŽºXkuÄy*ôq¥FSs]:2“ì

查看更多
神经病院院长
3楼-- · 2020-02-24 13:37

http://tim12332013.blogspot.tw/2014/10/corona-sdk-android-keystore-lost-alias.html

look it may help you

keytool -list -v -keystore X:/XXXX /XXXX.keystore -storepass XXXX

查看更多
何必那么认真
4楼-- · 2020-02-24 13:40

You can list the contents of your keystore with the command:

keytool -list -keystore <name of keystore file>

To do this, you will need to provide the keystore password (not the alias password). This will tell you the aliases in the file, which are self-contained, allowing you to sign. If you wish, you could also extract keys using other options / tools.

查看更多
不美不萌又怎样
5楼-- · 2020-02-24 13:42

The default alias in latest android studio version is "key0". You can try this if you haven't changed your alias value.

查看更多
登录 后发表回答