Small tool to decrypt passwords which are generated by mvn --encrypt-master-password
and stored in
settings-security.xml
(see documentation about Password Encryption in maven). You can see the relevant piece of code for encryption here
$ mvn --encrypt-master-password foo
{p/4zbBy9DFQHPpMPvz3tgwBf1tbXqDYFFbDzkMFTAtE=}
$ mvn --quiet exec:java <<< '{p/4zbBy9DFQHPpMPvz3tgwBf1tbXqDYFFbDzkMFTAtE=}'
Encrypted password:
Decrypted password: foo