I forgot the password for my Android keystore, but it's saved in the Intellij IDEA password manager. I know the master password, so IDEA is able to auto complete the keystore password, but I can find no way to view or copy/paste the password from the text field.
Is there a plugin that can do that, maybe?
I've also tried to look for some logs or a shell, because I assume that behind the scenes IDEA is using the keytool
utility from the SDK, so maybe I can spot the password in the command line.
I've ran out of ideas. Please help.
EDIT: If anyone knows where the encrypted passwords are kept, I could back up the file and use it in future IDEA installations with the same master password. Would that work?
Note that for recent versions of IntelliJ on MacOS, the passwords are (likely) stored in the Keychain by default. This can be verified via Preferences/Appearance & Behaviour/System Settings/Passwords.
To remove the existing passwords in the c. kdbx file, select Clear. and select Set Master Password. Once IntelliJ IDEA remembers your passwords, it will not ask for the passwords again including the master password unless you need to access the password database.
To set the master password for the database, click and select Set Master Password. Once IntelliJ IDEA remembers your passwords, it will not ask for the passwords again including the master password unless you need to access the password database. Protect master password using PGP key: Encrypt the master password for the password database using PGP.
For Linux, it depends on the desktop environment and available apps: if you have both GNOME Keyring and KWallet, IntelliJ IDEA will use GNOME Keyring for compatibility reasons because KWallet was not supported in previous versions. Use the KeePass password manager. Database: Specifies the location of the password database file c.kdbx.
This option is not available for Windows. macOS uses Keychain Access. For Linux, it depends on the desktop environment and available apps: if you have both GNOME Keyring and KWallet, IntelliJ IDEA will use GNOME Keyring for compatibility reasons because KWallet was not supported in previous versions. Use the KeePass password manager.
If your plugin needs to store passwords, you can make use of the PasswordSafe component or just use PasswordSafePromptDialog that automatically remembers entered passwords in the password database.
I've managed to understand the source code enough to put together a small utility program to decrypt the passwords in the security.xml file using the master password. https://github.com/corneliudascalu/intellij-decrypt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With