Passwords can be stored in clear text, obfuscated, checksummed or encrypted in order of increasing security.
The class org.mortbay.jetty.security.Password can be used to generate all varieties of passwords.
Run it without arguments to see usage instructions:
where -xxx.jar signifies the version of jetty that you have installed.
For example, to generate a secured version of the password "blah" for the user "me", do:
Now you can cut and paste whichever secure version you choose into your configuration file or java code.
For example, the last line below shows you how you would cut and paste the encrypted password generated above into the properties file for a HashUserRealm: