This document contains Java code that implements MD5 hashing to encrypt strings. It includes a class called DemoMD5 with a method called MD5 that takes a string as input and returns the encrypted MD5 hash as a hexadecimal string. There is also a main method that prompts the user to enter strings, hashes them using MD5, and allows the user to run the program in a loop until they choose to quit.
6. ? /*===================[output]===================
Enter string: HelloEncrytion
MD5 string: 3226f13a86b23a7ef65656703cd9ce5a
Run again?: y
Enter string: 12345
MD5 string: 827ccb0eea8a706c4c34a16891f84e7b
Run again?: Yes
Enter string: ThisIsKindOfFun
MD5 string: c7cd55c195f83ebfb739960ae8ceb465
Run again?: Ya
Enter string: Good Bye In 2010
MD5 string: 855380d7335697f739aae9d88819ec1f
Run again?: NOPE
==============================================*/
?