If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

Message Digests in Java 1.5

I'm exploring some of Java's Cryptography Extension. I'm trying to create a function that lets me calculate a hash of some string (for storing passwords in a database, for example). Using various sources (forums.java.sun.com, google, etc.) I ended up with this. It seems to work ok, but I'd like someone else look over my code to see if I missed something.

I wrapped the code in a small application for your compiling/execution comfort.