MD5 is an encryption algorithm. It can be used in alot of ways, in verifying the password on an LDAP server, signing and verifying jar files, cryptograhy etc. Do you have a particular type of application in mind?
If you're interested in Java security stuff, there's a great new book out: "Java Security Handbook" by Jamie Jaworski. There are examples of MD5, SHA and many encryption routines which are all current.
Hi We use MD5 to ensure that files have not been altered. We run an MD5 routine on our filesystem and store the hash valies into a database. Then when/if we need to verify that the files have not been altered, we re-run the md5 algo on the file and compare it to what is in the database. If they match, they haven't been altered. Just do md5sum -b file.txt >> file.hsh Very neat utility when you want to ensure that when a client says "We didnt' change anything" you can verify that yourself.
SOURCE CODE should be SURROUNDED by "code" tags.
A "dutch baby" is not a baby. But this tiny ad is baby sized:
Free, earth friendly heat - from the CodeRanch trailboss