Don't do it that way. what you want to do is push the password through a HMAC and store the results. Then when someone wants to login, get their password, push it through the same HMAC and compare the results.
A HMAC with SHA1 will do the job. There are RFCs defining the standard way, and the java.crypto classes have the SHA code.