I want to use MessageDigest to get a MD5 hash, but I get an error.
MessageDigest
import java.security.MessageDigest; public class dn { public static void main(
You should handle the exception:
try { MessageDigest md = MessageDigest.getInstance("MD5"); //... } catch(NoSuchAlgorithmException x) { // do proper exception handling }