In Accessing secure Geoserver layer with username password I have found how to access the GetCapabilities of a protected service adding the user/password in the URL: The answer works perfectly:
The problem is that I can't put the user/password information in a public metadata file for obvious reasons.
In the same question, the user who answered it said that the password can be encrypted. That would be great.
How can I get my encrypted password of GeoServer? I know that in "Settings" you can check the "Encrypted" box. What I want to know is the string of my encrypted password to add it to the URL.
The GeoServer documentation (http://docs.geoserver.org/latest/en/user/security/passwd.html) says it will look like this:
It doesn't say which tool I should use to get the string (only the encrpytion type, and I don't know what to do with that).