Victor,
CRYPT uses the
Unix Crypt algorithm, which like MD5 is a one way hash. So there is no specific algorithm available that will provide the original password. When using these encryptions, jetty takes newly provided credentials from the request and re-applies the hash to see if the same encrypted result is obtained. It cannot recover the original password.
However both MD5 and UnixCrypt are not strong encryptions and brute force algorithms can be applied to recover a "password" in a short period of time. Note however that I say "password", as it may not actually be the original password, but another one that just happens to generate the same hash.
In order to store strongly encrypted passwords in the XML, you will need access to a private key in order to decrypt them at start up time. This could be in a file, but would then be no more secure than the XML. The other alternative is to prompt the user for a passphrase at startup, but this will make automatic start impossible.
In short, either the XML has the credentials, in which case it is protected only be file/user privileges, or you need to come up with some other mechanism to provide the credentials at runtime that meets your operational requirements.
regards