Monday, 21 December 2015

A way to recover your lost Android keystore and key password

I'm pretty good with passwords - I keep a Keepass file on everything I do, and it's backed up immediately to the cloud. But something went wrong recently, and a password to a keystore and key did not get saved to my Keepass file. After some mild panic I learned that you can probably find your passwords in clear text in one of your gradle logfiles, this one to be precise:
.gradle/X.X.X/taskArtifacts/taskArtifacts.bin
Just search for the word password and if you're lucky like me you'll find the strings, separately recorded as keyPassword and storePassword. Sounds like a security hole to me, but boy it came in handy today.

No comments:

Post a Comment

Comments are moderated, so you'll have to wait a little bit before they appear!