Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recover a Maven encrypted password?

I have Maven set up for password encryption with a master password, and some time ago I encrypted a password with that and stored it in my settings.xml. The password is successfully in use by Maven plugins.

Now I want to recover that password for use outside Maven (performing an operation manually using a web browser). Is there a command to simply print the decrypted version of a server password?

like image 393
Jesse Glick Avatar asked Oct 09 '12 20:10

Jesse Glick


People also ask

How can I recover my encrypted password?

Go to Settings. Tap Chats > Chat Backup > End-to-end encrypted backup > Change Password. Tap I forgot my password, then verify your identity with your biometrics or device PIN. Create a new password for your backup.

How do I find my maven password?

Maven will prompt for the password. Earlier versions of Maven will not prompt for a password, so it must be typed on the command-line in plaintext. When this is done, you can start encrypting existing server passwords.

Where does Maven Store credentials?

When you run a Maven build that needs to interact with the repository manager, Maven will retrieve the Master password from the ~/. m2/settings-security. xml file and use this master password to decrypt the password stored in your ~/. m2/settings.

What is an encrypted password?

Encryption scrambles your password so it's unreadable and/or unusable by hackers. That simple step protects your password while it's sitting in a server, and it offers more protection as your password zooms across the internet.


1 Answers

Use the maven-settings-decoder tool.

like image 57
Ionuț G. Stan Avatar answered Oct 21 '22 02:10

Ionuț G. Stan