Originally posted by greg stark:
Don't go to that link! The code there contains atrocious and immoral exception handling, and just serves to poison the thinking of java beginners.
Listen to Greg. That code is sinful. Especially the encrypt and decrypt routines. Never do it that way.