I need to write the user's password into another attribute in crypt format since the edir password is MD5. (Can you guess what I'm setting up)

Does anyone have a nice java class that can hash that for me? I'm assuming that I'm going to have to call a class, unless there is a super tight secret function in one of the built in classes somewhere

Thanks!