to compare a given String with a password stored in a data base, you normally don't have to decrypt the password every time anew. Instead you put the hash value of the password into the data base. Now, every time someone want's to log in, using the password, you create the hash value of the entered (plain text) password and compare it to the hash value in the database. The two hash values will be equal if the password entered by the user is equal to the password which was originally hashed and put into the database.
I hope I made myself clear. Sometimes I fail because of my dilettantish english
There are some classes in the library and many on the internet. Look around in the java.security and javax.crypto packages. Sorry to say I have no hands-on with any of this, but here's Another Ranch Thread that may help. [ May 02, 2005: Message edited by: Stan James ]
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database