Android - Forgot your keystore password. Can I decrypt a keystore file?

I lost the password the keystore file that was used to sign my apk. I cannot update my application now, and I think I should release it as a new application, signing it with a new keystore. Is it possible to decrypt the keystore file since I have a keystore file and the password is present in the keystore file. Or someone can provide me with a link to a program that is used to force a password. If any of you could recover the password of the keystore file, share your method. Thanks in advance.

+19
java android
Jan 17 '12 at 12:57
source share
7 answers

I am using this for bruteforce at the moment: Android Keyster Password Recovery

+31
Aug 02 2018-12-12T00:
source share

There are 3 ways to recover the password of a lost key store:

  • If you do not have journal entries, you can find the password in the Android Studio log files: select ~ / Library / Logs โ†’ AndroidStudio -> idea.log.1 and search for โ€œPandroid.injected.signing.key.passwordโ€ and you can see the password key.

  • You can get the password from the .gradle directory. Take a look at .gradle \ 2.4 \ taskArtifacts \ taskArtifacts.bin. This does not seem to work for newer versions of Gradle (2.10 and higher).

  • Use AndroidKeystoreBrute to guess or roughly use your password according to Alex Kutsko answered above.

Solution Link

+29
Jul 25 '16 at 12:27
source share

Android dev and its IDE have been disabled for several months.

Took a couple of hours to find out that I really entered the correct password during the second attempt. The next dialog box displays exactly the same error icon as if I entered the wrong password, although in fact it says that I need to enter the password for the selected key!

Not like the original question, but you probably already entered the correct password! So much for user interface design.

+3
Dec 23 '13 at 13:38
source share

I had the same problem too!

There are several ways to find a password:

  • Using android studio log file
  • Using taskArtifacts
  • Using bruteforce

A detailed answer is provided at http://techzog.com/development/android/retrieve-saved-keystore-password-android-studio/

If none of the above work, there is a way to reset the keystore password ! Code is available here.

  • Download the zip file here .
  • Install JAVA on your computer.
  • Store all files (keystore, extracted Java files) in one folder
  • Open a command prompt there. (Shift + RightClick)
  • Run javac ChangePassword.java
  • Run java ChangePassword <keystore file> <new keystore file>

java ChangePassword oldkey.jks newkey.jks 7. Enter the password when prompted. Remember the new password for the new jks file.

Open jks file with new password

+1
Oct 17 '17 at 18:44 on
source share

I am using a simple method. I hope my way will solve your problem.

first way-> click

.gradle-> latest gradle version-> task histroy-> taskHistory.bin

The second way โ†’

.gradle-> latest gradle version-> taskArtifacts-> taskArtifacts.bin

+1
Nov 08 '17 at 7:23
source share

See KeystoreBreaker for recovering a lost password.

0
Aug 31 '12 at 13:59
source share

The most effective way to crack your password is to use the tool that I just released with hashcat:

https://github.com/floyd-fuh/JKS-private-key-cracker-hashcat

If you have a powerful graphics card (GPU), hacking will be much faster. Otherwise, hashcat will use your processor.

It comes down to the following two commands:

 java -jar JksPrivkPrepare.jar your_JKS_file.jks > hash.txt ./hashcat -m 15500 -a 3 hash.txt 
0
Jun 19 '17 at 7:36 on
source share



All Articles