Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij IDEA - view saved password

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?

like image 919
Corneliu Dascălu Avatar asked Jan 17 '14 20:01

Corneliu Dascălu


People also ask

Where does IntelliJ store passwords?

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.

How to remove saved password from IntelliJ?

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.

How to set master password in IntelliJ IDEA?

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.

Does IntelliJ IDEA support KeePass on Linux?

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.

Can I use KWallet with IntelliJ IDEA?

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.

How can I store passwords in my plugin?

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.


1 Answers

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

like image 62
Corneliu Dascălu Avatar answered Sep 28 '22 05:09

Corneliu Dascălu